From 79910e3542e104e600b5dc3d2175d01509bddbf8 Mon Sep 17 00:00:00 2001 From: arthomnix Date: Sun, 3 Jul 2022 19:53:45 +0100 Subject: [PATCH] NOISSUE shortcut creation: put file dialog in save mode This makes sure that the user is prompted if they are about to overwrite a file --- launcher/ui/dialogs/CreateShortcutDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/ui/dialogs/CreateShortcutDialog.cpp b/launcher/ui/dialogs/CreateShortcutDialog.cpp index 3238da01..9123d667 100644 --- a/launcher/ui/dialogs/CreateShortcutDialog.cpp +++ b/launcher/ui/dialogs/CreateShortcutDialog.cpp @@ -91,7 +91,7 @@ void CreateShortcutDialog::on_shortcutPathBrowse_clicked() #endif QFileDialog fileDialog(this, tr("Select shortcut path"), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)); fileDialog.setDefaultSuffix(linkExtension); - fileDialog.setAcceptMode(QFileDialog::AcceptOpen); + fileDialog.setAcceptMode(QFileDialog::AcceptSave); fileDialog.setFileMode(QFileDialog::AnyFile); fileDialog.selectFile(m_instance->name() + " - " + BuildConfig.LAUNCHER_DISPLAYNAME + "." + linkExtension); if (fileDialog.exec())