diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp index 26babcb3e..2f8227c49 100644 --- a/src/plasmaquick/dialog.cpp +++ b/src/plasmaquick/dialog.cpp @@ -24,9 +24,7 @@ #include "dialogshadows_p.h" #include "view.h" -#include #include -#include #include #include #include @@ -480,7 +478,7 @@ Dialog::Dialog(QQuickItem *parent) Dialog::~Dialog() { - if (!qApp->closingDown()) { + if (!QCoreApplication::instance()->closingDown()) { DialogShadows::self()->removeWindow(this); } }