From de01e9e559fb8c2fdc017bb4786f987bbbc041f5 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 25 Jul 2016 18:36:45 +0200 Subject: [PATCH] Changed: Create shortcut to installer, see #279 --HG-- branch : develop --- .../client/ryzom_installer/src/operationdialog.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp index 060eec4e5..80b8c8f29 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp @@ -752,9 +752,16 @@ void COperationDialog::copyInstaller() // create installer link in menu QString executable = newInstallerFullPath; QString shortcut = config->getInstallerMenuLinkFullPath(); - QString desc = "Ryzom Installer"; + QString name = "Ryzom Installer"; + QString icon; - createLink(executable, shortcut, "", "", desc); +#ifdef Q_OS_WIN32 + icon = executable; +#else + // TODO: Linux icon +#endif + + createLink(shortcut, name, executable, "", icon, ""); } emit done();