diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-18 05:07:32 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-03 11:39:01 -0500 |
| commit | ccab9eae8df3cf5367ce5cf164c98d1534ac13cb (patch) | |
| tree | 603bddc6dc14d256d4b416514e089326be83c42e /src/moshortcut.cpp | |
| parent | 75cc2ffead148ab2409cd1ef469613d2e9b80e17 (diff) | |
add warning when profile given with -p doesn't exist
implemented moshortcut, nxm links and executable names as command line options
Diffstat (limited to 'src/moshortcut.cpp')
| -rw-r--r-- | src/moshortcut.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/moshortcut.cpp b/src/moshortcut.cpp index aad7380e..4efedbdb 100644 --- a/src/moshortcut.cpp +++ b/src/moshortcut.cpp @@ -40,3 +40,12 @@ MOShortcut::MOShortcut(const QString& link) m_hasExecutable=true; } } + +QString MOShortcut::toString() const +{ + if (m_hasInstance) { + return "moshortcut://" + m_instance + ":" + m_executable; + } else { + return "moshortcut://" + m_executable; + } +} |
