mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-10 01:09:34 +00:00
Merge with develop
This commit is contained in:
parent
643c0fabf2
commit
51970f9b79
2 changed files with 10 additions and 1 deletions
|
@ -237,6 +237,9 @@ void COperationDialog::updateAddRemoveComponents()
|
||||||
|
|
||||||
// remove profiles that didn't exist
|
// remove profiles that didn't exist
|
||||||
profilesToAdd.removeAll(profile.id);
|
profilesToAdd.removeAll(profile.id);
|
||||||
|
|
||||||
|
// delete all shortcuts, we'll recreate them later
|
||||||
|
profile.deleteShortcuts();
|
||||||
}
|
}
|
||||||
|
|
||||||
const CServer &defaultServer = config->getServer();
|
const CServer &defaultServer = config->getServer();
|
||||||
|
@ -360,7 +363,7 @@ void COperationDialog::processUpdateProfilesNextStep()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// recreate shortcuts
|
// recreate all shortcuts
|
||||||
foreach(const CProfile &profile, config->getProfiles())
|
foreach(const CProfile &profile, config->getProfiles())
|
||||||
{
|
{
|
||||||
profile.createShortcuts();
|
profile.createShortcuts();
|
||||||
|
|
|
@ -169,6 +169,12 @@ bool createShortcut(const QString &shortcut, const QString &name, const QString
|
||||||
|
|
||||||
// Save the link by calling IPersistFile::Save.
|
// Save the link by calling IPersistFile::Save.
|
||||||
hres = ppf->Save(qToWide(QDir::toNativeSeparators(path)), TRUE);
|
hres = ppf->Save(qToWide(QDir::toNativeSeparators(path)), TRUE);
|
||||||
|
|
||||||
|
if (FAILED(hres))
|
||||||
|
{
|
||||||
|
qDebug() << "Unable to create shortcut" << path;
|
||||||
|
}
|
||||||
|
|
||||||
ppf->Release();
|
ppf->Release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue