on xenial help sign in
Change usage of arg so that it actually works
commita5ed19d9d0e90092916758ba3248411c91370ff9 authorTed Gould <ted@gould.cx> dateThu 10 Apr 2014, 16:50 (13 years ago) parent911be18
1 file changed+2−2
plugins/Unity/Launcher/backend/launcherbackend.cpp+2−2
plugins/Unity/Launcher/backend/launcherbackend.cpp+2−2
@@ -525,8 +525,8 @@ QString LauncherBackend::encodeAppId (const QString& appId) const
525525 (chr >= '0' && chr <= '9'&& i != 0)) {
526526 encoded.append(chr);
527527 } else {
528− encoded.append('_');
529− encoded.arg((ushort)chr, 2, 16, QChar('0'));
528+ QString hexval = QString("_%1").arg((ushort)chr, 2, 16, QChar('0'));
529+ encoded.append(hexval);
530530 }
531531 }
532532