Windows: remove icon if shortcut creation fails

Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
This commit is contained in:
ADudeCalledLeo 2022-11-12 20:43:58 +02:00
parent b813c867b5
commit 45ce72593a
No known key found for this signature in database
GPG Key ID: 2E08DA5D6AF36F3B

View File

@ -2158,6 +2158,7 @@ void MainWindow::on_actionCreateInstanceShortcut_triggered()
}
else
{
iconFile.remove();
QMessageBox::critical(this, tr("Create instance shortcut"), tr("Failed to create instance shortcut!"));
}
#else