From c99c933f27c2cf8e9790eb6114a8ca4beb595d5b Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 19 Jun 2016 21:08:49 +0200 Subject: [PATCH] Changed: Create client shortcuts for profile --- .../ryzom_installer/src/operationdialog.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp index f858ec600..ebcb1c722 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp @@ -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");