ensure that the shortcut destination exists
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
828acef7e9
commit
166207753c
1 changed files with 4 additions and 0 deletions
|
@ -921,6 +921,10 @@ bool createShortcut(QString destination, QString target, QStringList args, QStri
|
|||
if (destination.isEmpty()) {
|
||||
destination = PathCombine(getDesktopDir(), RemoveInvalidFilenameChars(name));
|
||||
}
|
||||
if (!ensureFilePathExists(destination)) {
|
||||
qWarning() << "Destination path can't be created!";
|
||||
return false;
|
||||
}
|
||||
#if defined(Q_OS_MACOS)
|
||||
// Create the Application
|
||||
QDir applicationDirectory =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue