don't access a global static when destroyed

This commit is contained in:
Marco Martin 2014-02-28 17:08:37 +01:00
parent 92d2e6adb6
commit 0a8df8895f

View File

@ -91,7 +91,9 @@ DialogProxy::DialogProxy(QQuickItem *parent)
DialogProxy::~DialogProxy()
{
DialogShadows::self()->removeWindow(this);
if (!qApp->closingDown()) {
DialogShadows::self()->removeWindow(this);
}
}
QQuickItem *DialogProxy::mainItem() const