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:
@@ -35,12 +35,9 @@
|
||||
#include <metainfo.h>
|
||||
#include <rewritingexception.h>
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
#include <QDebug>
|
||||
#include <QMimeData>
|
||||
#include <QMessageBox>
|
||||
#include <QTimer>
|
||||
|
||||
namespace QmlDesigner {
|
||||
@@ -277,7 +274,7 @@ void DragTool::commitTransaction()
|
||||
try {
|
||||
m_rewriterTransaction.commit();
|
||||
} catch (RewritingException &e) {
|
||||
QMessageBox::warning(Core::ICore::dialogParent(), "Error", e.description());
|
||||
e.showException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user