forked from qt-creator/qt-creator
qmldesigner: increase restart timer
It was looping in debug on Windows so heaviliy that it brought the system to hold then. Change-Id: I10eccb6c48a22ba7a9de912a912f957066bf9c09 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -295,9 +295,9 @@ void NodeInstanceView::modelAboutToBeDetached(Model * model)
|
||||
void NodeInstanceView::handleCrash()
|
||||
{
|
||||
qint64 elaspsedTimeSinceLastCrash = m_lastCrashTime.restart();
|
||||
qint64 forceRestartTime = 2000;
|
||||
qint64 forceRestartTime = 5000;
|
||||
#ifdef QT_DEBUG
|
||||
forceRestartTime = 4000;
|
||||
forceRestartTime = 10000;
|
||||
#endif
|
||||
if (elaspsedTimeSinceLastCrash > forceRestartTime)
|
||||
restartProcess();
|
||||
|
||||
Reference in New Issue
Block a user