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:
hjk
2014-03-12 12:06:58 +01:00
parent 3b84a6dc88
commit 7ed339248a
10 changed files with 37 additions and 45 deletions

View File

@@ -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();
}
}