Remove reference to QApplication

This commit is contained in:
David Edmundson 2014-06-04 18:50:34 +02:00
parent 4b74e83fb2
commit 3994890bff

View File

@ -24,9 +24,7 @@
#include "dialogshadows_p.h"
#include "view.h"
#include <QApplication>
#include <QQuickItem>
#include <QDesktopWidget>
#include <QTimer>
#include <QLayout>
#include <QScreen>
@ -480,7 +478,7 @@ Dialog::Dialog(QQuickItem *parent)
Dialog::~Dialog()
{
if (!qApp->closingDown()) {
if (!QCoreApplication::instance()->closingDown()) {
DialogShadows::self()->removeWindow(this);
}
}