don't access a global static when destroyed
This commit is contained in:
parent
92d2e6adb6
commit
0a8df8895f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user