diff options
author | Marco Bubke <marco.bubke@theqtcompany.com> | 2014-11-25 11:50:09 +0100 |
---|---|---|
committer | Marco Bubke <marco.bubke@theqtcompany.com> | 2014-11-25 15:24:49 +0100 |
commit | 771f47c0da0f7a71d607d98d78830dcc493cb4ba (patch) | |
tree | 42c09c52cc40eabaf986d681cdb2bf181524372d /src/plugins/qmldesigner/componentsplugin | |
parent | e5c16c796e458f0117a2f024d50d9c21c1c8ddb8 (diff) |
QmlDesigner: Use Core::AsynchronousMessageBox
Warning which needs return value should be asynchronous because the event
loop of the blocking dialog leads to crashes.
Change-Id: Ie49c95d63ec3f2183378013c726c3b99680dc7b0
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmldesigner/componentsplugin')
-rw-r--r-- | src/plugins/qmldesigner/componentsplugin/addtabdesigneraction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmldesigner/componentsplugin/addtabdesigneraction.cpp b/src/plugins/qmldesigner/componentsplugin/addtabdesigneraction.cpp index f6a11a18e55..91f8b8a2b49 100644 --- a/src/plugins/qmldesigner/componentsplugin/addtabdesigneraction.cpp +++ b/src/plugins/qmldesigner/componentsplugin/addtabdesigneraction.cpp @@ -37,7 +37,7 @@ #include <QFileInfo> #include <coreplugin/icore.h> -#include <utils/messagebox.h> +#include <coreplugin/messagebox.h> #include <documentmanager.h> #include <nodemetainfo.h> @@ -117,7 +117,7 @@ void AddTabDesignerAction::addNewTab() QString newFilePath = directoryPath +QStringLiteral("/") + tabName + QStringLiteral(".qml"); if (QFileInfo::exists(newFilePath)) { - Utils::AsynchronousMessageBox::warning(tr("Naming Error"), tr("Component already exists.")); + Core::AsynchronousMessageBox::warning(tr("Naming Error"), tr("Component already exists.")); } else { const QString sourceString = QStringLiteral("import QtQuick 2.1\nimport QtQuick.Controls 1.0\n\nItem {\n anchors.fill: parent\n}"); bool fileCreated = DocumentManager::createFile(newFilePath, sourceString); |