summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorJeremy Rimpo <jeremy.rimpo@servermonkey.com>2017-12-11 09:53:28 -0600
committerGitHub <noreply@github.com>2017-12-11 09:53:28 -0600
commit361e59e40d7e955eaaaa1cf4dd4f407a5ca7cdef (patch)
treeacf1d06bc6f90c4571ba4783380c7e7b33e27419 /src/mainwindow.cpp
parentbf02d13ed4353ef02d3e5ef0b91931fef59709e6 (diff)
parentad702537bd6dc4eff40dd6b6d51536b2758dca6c (diff)
Merge pull request #140 from erasmux/shortcut_fixes
Shortcut fixes
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 1db895fc..632b64e9 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -3199,11 +3199,10 @@ void MainWindow::addWindowsLink(const ShortcutType mapping)
QString executable = QDir::toNativeSeparators(selectedExecutable.m_BinaryInfo.absoluteFilePath());
std::wstring targetFile = ToWString(exeInfo.absoluteFilePath());
- std::wstring parameter = ToWString(QString("\"%1\" %2").arg(executable)
- .arg(selectedExecutable.m_Arguments));
- std::wstring description = ToWString(selectedExecutable.m_BinaryInfo.fileName());
+ std::wstring parameter = ToWString(QString("\"moshortcut://%1\"").arg(selectedExecutable.m_Title));
+ std::wstring description = ToWString(QString("Run %1 with ModOrganizer").arg(selectedExecutable.m_Title));
std::wstring iconFile = ToWString(executable);
- std::wstring currentDirectory = ToWString(QDir::toNativeSeparators(exeInfo.absolutePath()));
+ std::wstring currentDirectory = ToWString(QDir::toNativeSeparators(qApp->applicationDirPath()));
if (CreateShortcut(targetFile.c_str()
, parameter.c_str()