diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-12-02 13:51:46 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-12-02 13:51:46 -0500 |
| commit | d4172dc5f8c642dbbe235a86a28992af310e703a (patch) | |
| tree | 21eb9f6cc16d9f35cebb2a93c786c17a3a66ea4c /src/processrunner.h | |
| parent | 2b4d7929769a91d9de30e1e10319d1c9cf0450af (diff) | |
added "open with vfs" option to conflicts tab
Diffstat (limited to 'src/processrunner.h')
| -rw-r--r-- | src/processrunner.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/processrunner.h b/src/processrunner.h index a5099136..d576216a 100644 --- a/src/processrunner.h +++ b/src/processrunner.h @@ -68,10 +68,14 @@ public: ProcessRunner& setWaitForCompletion( WaitFlags flags=NoFlags, UILocker::Reasons reason=UILocker::LockUI); - // if the target is an executable file, runs that; for anything else, calls - // ShellExecute() on it + // - if the target is an executable file, runs it hooked + // - if the target is a file: + // - if forceHook is false, calls ShellExecute() on it + // - 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); + ProcessRunner& setFromFile( + QWidget* parent, const QFileInfo& targetInfo, bool forceHook = false); ProcessRunner& setFromExecutable(const Executable& exe); ProcessRunner& setFromShortcut(const MOShortcut& shortcut); |
