on xenial help sign in
drop unneeded debug print and microoptimize an if/else
commit1f0b8d1dddff34cf4017e90971a66082d4ca9e71 authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 2 Sep 2014, 17:02 (12 years ago) parent750589e
1 file changed+1−4
plugins/Unity/Launcher/gsettings.cpp+1−4
plugins/Unity/Launcher/gsettings.cpp+1−4
@@ -21,7 +21,6 @@
2121
2222#include <QGSettings>
2323#include <QVariant>
24−#include <QDebug>
2524
2625GSettings::GSettings(QObject *parent):
2726 QObject(parent)
@@ -43,7 +42,6 @@ QStringList GSettings::storedApplications() const
4342 }
4443
4544 Q_FOREACH(const QString &entry, gSettings.get(settingsKey).toStringList()) {
46− qDebug() << "got entry" << entry;
4745 if (entry.startsWith("application://")) {
4846 // convert legacy entries to new world appids
4947 QString appId = entry;
@@ -51,8 +49,7 @@ QStringList GSettings::storedApplications() const
5149 appId.remove(QRegExp("^application://"));
5250 appId.remove(QRegExp(".desktop$"));
5351 storedApps << appId;
54− }
55− if (entry.startsWith("appid://")) {
52+ } else if (entry.startsWith("appid://")) {
5653 QString appId = entry;
5754 appId.remove("appid://");
5855 if (appId.split('/').count() == 3) {