From 19bcde579753ed3ac3b6c509d6a3b9d593d12b20 Mon Sep 17 00:00:00 2001
From: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Date: Thu, 25 Mar 2010 13:36:06 +0100
Subject: [PATCH] QmlDesigner.propertyEditor: only catch RewritingException

---
 .../components/propertyeditor/propertyeditor.cpp            | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
index ba83b7ccac6..242fd12dbda 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
+++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
@@ -35,6 +35,7 @@
 #include <propertymetainfo.h>
 
 #include <invalididexception.h>
+#include <rewritingexception.h>
 #include <invalidnodestateexception.h>
 #include <variantproperty.h>
 #include <propertymetainfo.h>
@@ -394,8 +395,7 @@ void PropertyEditor::changeValue(const QString &propertyName)
                 m_locked = false;
         }
     }
-
-    catch (Exception &e) {
+    catch (RewritingException &e) {
         QMessageBox::warning(0, "Error", e.description());
     }
 }
@@ -457,7 +457,7 @@ void PropertyEditor::changeExpression(const QString &name)
         }
     }
 
-    catch (Exception &e) {
+    catch (RewritingException &e) {
         QMessageBox::warning(0, "Error", e.description());
     }
 }
-- 
GitLab