File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
src/Interface/Application Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -493,6 +493,12 @@ void SCIRunMainWindow::executeAll()
493493 saveNetwork ();
494494 }
495495
496+ if (Application::Instance ().parameters ()->isRegressionMode ())
497+ {
498+ auto timeout = Application::Instance ().parameters ()->regressionTimeoutSeconds ();
499+ QTimer::singleShot (1000 * *timeout, this , SLOT (networkTimedOut ()));
500+ }
501+
496502 networkEditor_->executeAll ();
497503}
498504
@@ -514,6 +520,11 @@ void SCIRunMainWindow::quit()
514520 exitApplication (0 );
515521}
516522
523+ void SCIRunMainWindow::networkTimedOut ()
524+ {
525+ exitApplication (2 );
526+ }
527+
517528void SCIRunMainWindow::saveNetwork ()
518529{
519530 if (currentFile_.isEmpty ())
Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ private Q_SLOTS:
183183 void openLogFolder ();
184184 void resetWindowLayout ();
185185 void zoomNetwork ();
186+ void networkTimedOut ();
186187 void changeExecuteActionIconToStop ();
187188 void changeExecuteActionIconToPlay ();
188189 void adjustExecuteButtonAppearance ();
You can’t perform that action at this time.
0 commit comments