Changed: Create client shortcuts for profile

--HG--
branch : develop
This commit is contained in:
kervala 2016-06-19 21:08:49 +02:00
parent 50d73127cb
commit 0808ab8d3f

View file

@ -1065,6 +1065,23 @@ void COperationDialog::deleteComponentsServers()
emit done();
}
void COperationDialog::addComponentsProfiles()
{
m_currentOperation = tr("Add profiles");
m_currentOperationProgressFormat = tr("Adding profile %1...");
CConfigFile *config = CConfigFile::getInstance();
foreach(const QString &profileId, m_addComponents.profiles)
{
CProfile &profile = config->getProfile(profileId);
if (profile.desktopShortcut) createClientDesktopShortcut(profile.id);
if (profile.menuShortcut) createClientMenuShortcut(profile.id);
}
}
void COperationDialog::deleteComponentsProfiles()
{
m_currentOperation = tr("Delete profiles");