summaryrefslogtreecommitdiff
path: root/src/processrunner.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-12-02 11:06:10 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2019-12-02 11:06:10 -0500
commit2b4d7929769a91d9de30e1e10319d1c9cf0450af (patch)
treed4079f23afddf317549cabc5479d492cb6a96e10 /src/processrunner.cpp
parenteabca00c35d7af3b6822bb7857ef1e073807ca0a (diff)
don't show the lock overlay for processes that are not hooked
starting exe from filetree is now hooked usvfs progress dialog now on top of dialogs
Diffstat (limited to 'src/processrunner.cpp')
-rw-r--r--src/processrunner.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/processrunner.cpp b/src/processrunner.cpp
index 89777072..b6167706 100644
--- a/src/processrunner.cpp
+++ b/src/processrunner.cpp
@@ -498,6 +498,10 @@ ProcessRunner& ProcessRunner::setFromFile(QWidget* parent, const QFileInfo& targ
default:
{
m_shellOpen = targetInfo.absoluteFilePath();
+
+ // picked up by postRun()
+ m_sp.hooked = false;
+
break;
}
}
@@ -722,6 +726,11 @@ ProcessRunner::Results ProcessRunner::postRun()
{
const bool mustWait = (m_waitFlags & ForceWait);
+ if (!m_sp.hooked && !mustWait) {
+ // the process wasn't hooked and there's no force wait, don't lock
+ return Running;
+ }
+
if (mustWait && m_lockReason == UILocker::NoReason) {
// never lock the ui without an escape hatch for the user
log::debug(