on xenial help sign in
Make it const too just to make it nicer
commitd34a64ca82a90a1bf296ae2765d3dd8995fddfcf authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 29 Sep 2015, 14:53 (11 years ago) parentf496a5e
1 file changed+1−1
plugins/Unity/Launcher/desktopfilehandler.cpp+1−1
plugins/Unity/Launcher/desktopfilehandler.cpp+1−1
@@ -113,7 +113,7 @@ QString DesktopFileHandler::displayName() const
113113 // First try to find Name[xx_YY] and Name[xx] in .desktop file
114114 const QString locale = QLocale().name();
115115 const QStringList splitLocale = locale.split('_');
116− QString shortLocale = splitLocale.first();
116+ const QString shortLocale = splitLocale.first();
117117
118118 if (locale != shortLocale && settings.contains(QStringLiteral("Name[%1]").arg(locale))) {
119119 return settings.value(QStringLiteral("Name[%1]").arg(locale)).toString();