OSDN Git Service

QmlDesigner.qmlPuppet: try to restart after 2 seconds.
authorThomas Hartmann <Thomas.Hartmann@nokia.com>
Thu, 24 Mar 2011 10:15:04 +0000 (11:15 +0100)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>
Thu, 24 Mar 2011 10:15:20 +0000 (11:15 +0100)
10 seconds were a little bit too long.

src/plugins/qmldesigner/designercore/instances/nodeinstanceview.cpp

index 9e04463..2ffd8ce 100644 (file)
@@ -178,7 +178,7 @@ void NodeInstanceView::handleChrash()
 {
     int elaspsedTimeSinceLastCrash = m_lastCrashTime.restart();
 
-    if (elaspsedTimeSinceLastCrash > 10000) {
+    if (elaspsedTimeSinceLastCrash > 2000) {
         restartProcess();
     } else {
         emitCustomNotification("QmlPuppet crashed");