mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-25 02:10:53 +00:00
Fixed: Create Menu directory before creating shortcuts
This commit is contained in:
parent
82a95f3e79
commit
b6b6540b38
1 changed files with 14 additions and 2 deletions
|
@ -99,16 +99,28 @@ void CProfile::createShortcuts() const
|
||||||
{
|
{
|
||||||
QString shortcut = getClientDesktopShortcutFullPath();
|
QString shortcut = getClientDesktopShortcutFullPath();
|
||||||
|
|
||||||
|
// make sure directory exists
|
||||||
|
QDir().mkpath(CConfigFile::getInstance()->getDesktopDirectory());
|
||||||
|
|
||||||
// create desktop shortcut
|
// create desktop shortcut
|
||||||
createShortcut(shortcut, name, exe, profileArguments, icon, workingDir);
|
if (!createShortcut(shortcut, name, exe, profileArguments, icon, workingDir))
|
||||||
|
{
|
||||||
|
qDebug() << "Unable to create desktop directory";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (menuShortcut)
|
if (menuShortcut)
|
||||||
{
|
{
|
||||||
QString shortcut = getClientMenuShortcutFullPath();
|
QString shortcut = getClientMenuShortcutFullPath();
|
||||||
|
|
||||||
|
// make sure directory exists
|
||||||
|
QDir().mkpath(CConfigFile::getInstance()->getMenuDirectory());
|
||||||
|
|
||||||
// create menu shortcut
|
// create menu shortcut
|
||||||
createShortcut(shortcut, name, exe, profileArguments, icon, workingDir);
|
if (!createShortcut(shortcut, name, exe, profileArguments, icon, workingDir))
|
||||||
|
{
|
||||||
|
qDebug() << "Unable to create shortcut for client in menu";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue