Commit fc920e0a authored by kervala's avatar kervala

Changed: Delete old profiles shortcuts (in case where they are renamed)

parent bd8e3d3b
......@@ -237,6 +237,9 @@ void COperationDialog::updateAddRemoveComponents()
// remove profiles that didn't exist
profilesToAdd.removeAll(profile.id);
// delete all shortcuts, we'll recreate them later
profile.deleteShortcuts();
}
const CServer &defaultServer = config->getServer();
......@@ -360,7 +363,7 @@ void COperationDialog::processUpdateProfilesNextStep()
}
}
// recreate shortcuts
// recreate all shortcuts
foreach(const CProfile &profile, config->getProfiles())
{
profile.createShortcuts();
......
......@@ -169,6 +169,12 @@ bool createShortcut(const QString &shortcut, const QString &name, const QString
// Save the link by calling IPersistFile::Save.
hres = ppf->Save(qToWide(QDir::toNativeSeparators(path)), TRUE);
if (FAILED(hres))
{
qDebug() << "Unable to create shortcut" << path;
}
ppf->Release();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment