forked from qt-creator/qt-creator
QmlDesigner: Consolidate exception handling code
And translate the message box title. Change-Id: I9d805c10940e5e3dbaa17323a913a4a55fc61a2d Reviewed-by: Marco Bubke <marco.bubke@digia.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -40,7 +40,6 @@
|
||||
#include <viewmanager.h>
|
||||
#include <nodeinstanceview.h>
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <projectexplorer/projectexplorer.h>
|
||||
#include <projectexplorer/project.h>
|
||||
#include <projectexplorer/target.h>
|
||||
@@ -53,7 +52,6 @@
|
||||
#include <QUrl>
|
||||
#include <QDebug>
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QPlainTextEdit>
|
||||
#include <QApplication>
|
||||
|
||||
@@ -366,7 +364,7 @@ void DesignDocument::deleteSelected()
|
||||
}
|
||||
|
||||
} catch (RewritingException &e) {
|
||||
QMessageBox::warning(Core::ICore::dialogParent(), tr("Error"), e.description());
|
||||
e.showException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user