diff options
Diffstat (limited to 'src/plugins/qmljseditor/qmljspreviewrunner.cpp')
-rw-r--r-- | src/plugins/qmljseditor/qmljspreviewrunner.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/qmljseditor/qmljspreviewrunner.cpp b/src/plugins/qmljseditor/qmljspreviewrunner.cpp index a6932185b0..6a31fd6320 100644 --- a/src/plugins/qmljseditor/qmljspreviewrunner.cpp +++ b/src/plugins/qmljseditor/qmljspreviewrunner.cpp @@ -29,6 +29,8 @@ #include "qmljspreviewrunner.h" +#include <coreplugin/icore.h> + #include <utils/environment.h> #include <utils/hostosinfo.h> #include <utils/qtcprocess.h> @@ -71,7 +73,7 @@ void QmlJSPreviewRunner::run(const QString &filename) } if (!errorMessage.isEmpty()) - QMessageBox::warning(0, tr("Failed to preview Qt Quick file"), + QMessageBox::warning(Core::ICore::dialogParent(), tr("Failed to preview Qt Quick file"), tr("Could not preview Qt Quick (QML) file. Reason:\n%1").arg(errorMessage)); } |