summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-31 02:00:58 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-06 07:44:58 -0500
commit2c3079c1dc2aaeb84cbe7e4a021f6b3f22c785a3 (patch)
tree082bbcbf816a183b60cd78d34ebe8e098c390870 /src/mainwindow.cpp
parentc8e101e19eed4417d42bef678cd60d3efb414eb7 (diff)
removed runExecutable()
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index c1789b0a..3d32aa16 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1536,8 +1536,12 @@ void MainWindow::startExeAction()
}
action->setEnabled(false);
- m_OrganizerCore.processRunner().runExecutable(*itor);
- action->setEnabled(true);
+ Guard g([&]{ action->setEnabled(true); });
+
+ m_OrganizerCore.processRunner()
+ .setFromExecutable(*itor)
+ .setWaitForCompletion(ProcessRunner::Refresh)
+ .run();
}
void MainWindow::activateSelectedProfile()