summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorAl12rs <gabriel.cortesi@outlook.com>2018-04-06 21:35:15 +0200
committerAl12rs <gabriel.cortesi@outlook.com>2018-04-07 14:10:16 +0200
commit5c39a762e68c3559438a622dbf747eb8bddec7ed (patch)
tree7d74dc78c8b8f6cb0dcb24556fe9dd0dc6f076fc /src/organizercore.cpp
parenta905ce130d0f1f4894f135660d9cf515788bb2ad (diff)
Allow MO2 shortcuts that open the indicated MO2 instance in the argument if the executable name is omitted.
This should be added after the MO2 exe path: ' "moshortcut://myInstanceName:" '. If there are caracters after the ":" then MO2 will assume that is an execuatble and will try to run it.
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index b84488da..0398e9ac 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -602,8 +602,9 @@ void OrganizerCore::downloadRequestedNXM(const QString &url)
void OrganizerCore::externalMessage(const QString &message)
{
- if (MOShortcut moshortcut{ message }) {
- runShortcut(moshortcut);
+ if (MOShortcut moshortcut{ message } ) {
+ if(moshortcut.hasExecutable())
+ runShortcut(moshortcut);
}
else if (isNxmLink(message)) {
MessageDialog::showMessage(tr("Download started"), qApp->activeWindow());