From 99e2bddb196c07434c6754ad652588631598a906 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 --- .../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();