From bd8968ec5f8848c7881becbd7105283152532646 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 9 Oct 2016 15:10:15 +0200 Subject: [PATCH] Changed: Write icon under Linux if not found --- .../tools/client/ryzom_installer/src/operationdialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp index 6878adcfd..9c84f46cf 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp @@ -793,6 +793,12 @@ void COperationDialog::copyInstaller() #else // icon is in the same directory as installer icon = config->getInstallationDirectory() + "/ryzom_installer.png"; + + // create icon if not exists + if (!QFile::exists(icon) && !writeResource(":/icons/ryzom.png", icon)) + { + qDebug() << "Unable to create" << icon; + } #endif createShortcut(shortcut, name, executable, "", icon, "");