diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-12-09 10:12:12 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-09 10:12:12 -0500 |
| commit | 8cf3c4a3678233c37a89be38cebdaf5b8e864cb2 (patch) | |
| tree | 9017c6df24a70a42b0417062dcfb1741f83fe5c6 /src/processrunner.h | |
| parent | 44084bfa415f906b8ba8b5d19e1be60a7612d692 (diff) | |
| parent | 37891f29ca6f5935d4148bf5cf1f1d5a4eaa746c (diff) | |
Merge pull request #931 from isanae/double-click-unhooked
Double click unhooked
Diffstat (limited to 'src/processrunner.h')
| -rw-r--r-- | src/processrunner.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/processrunner.h b/src/processrunner.h index d576216a..1bfdc465 100644 --- a/src/processrunner.h +++ b/src/processrunner.h @@ -67,6 +67,7 @@ public: ProcessRunner& setProfileName(const QString& profileName); ProcessRunner& setWaitForCompletion( WaitFlags flags=NoFlags, UILocker::Reasons reason=UILocker::LockUI); + ProcessRunner& setHooked(bool b); // - if the target is an executable file, runs it hooked // - if the target is a file: @@ -74,8 +75,7 @@ public: // - if forceHook is true, gets the executable associated with the file // and runs that hooked by passing the file as an argument // - ProcessRunner& setFromFile( - QWidget* parent, const QFileInfo& targetInfo, bool forceHook = false); + ProcessRunner& setFromFile(QWidget* parent, const QFileInfo& targetInfo); ProcessRunner& setFromExecutable(const Executable& exe); ProcessRunner& setFromShortcut(const MOShortcut& shortcut); @@ -150,11 +150,13 @@ private: QString m_profileName; UILocker::Reasons m_lockReason; WaitFlags m_waitFlags; - QString m_shellOpen; + QFileInfo m_shellOpen; env::HandlePtr m_handle; DWORD m_exitCode; + bool shouldRunShell() const; + // runs the command in m_shellOpen; returns empty if it can be waited for // std::optional<Results> runShell(); |
