From 71507de04bb0d6a07ed26ddb68b0bc64661ab2bd Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Mon, 19 Dec 2016 08:14:51 +0100 Subject: [PATCH] [Icon Applet] Move comment to where it belongs :) --- applets/icon/iconapplet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/icon/iconapplet.cpp b/applets/icon/iconapplet.cpp index 7e9de93db..497c84744 100644 --- a/applets/icon/iconapplet.cpp +++ b/applets/icon/iconapplet.cpp @@ -90,7 +90,6 @@ void IconApplet::populate() return; } - // We always want it to be a .desktop file (e.g. also for the "Type=Link" at the end) QString desiredDesktopFileName = m_url.fileName(); // in doubt, just hash the URL, e.g. http://www.kde.org/ has no filename @@ -98,6 +97,7 @@ void IconApplet::populate() desiredDesktopFileName = QString::fromLatin1(QCryptographicHash::hash(m_url.toDisplayString().toUtf8(), QCryptographicHash::Md5).toHex()); } + // We always want it to be a .desktop file (e.g. also for the "Type=Link" at the end) if (!desiredDesktopFileName.endsWith(QLatin1String(".desktop"))) { desiredDesktopFileName.append(QLatin1String(".desktop")); }