on xenial help sign in
remove debug prints, add a comment
commit81cfa93fb19b4a58b15f0067a739c6157cb2512b authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 4 Sep 2013, 22:46 (13 years ago) parent4a9640b
2 files changed+1−7
plugins/Unity/Launcher/backend/launcherbackend.cpp+1−1 plugins/Unity/Launcher/launchermodel.cpp−6
plugins/Unity/Launcher/backend/launcherbackend.cpp+1−1
@@ -224,6 +224,7 @@ void LauncherBackend::syncFromAccounts()
224224 Q_FOREACH(const QString &entry, gSettings.get("favorites").toStringList()) {
225225 if (entry.startsWith("application://")) {
226226 QString appId = entry;
227+ // Transform "application://foobar.desktop" to "foobar"
227228 appId.remove("application://");
228229 if (appId.endsWith(".desktop")) {
229230 appId.chop(8);
@@ -278,7 +279,6 @@ QString LauncherBackend::findDesktopFile(const QString &appId) const
278279 }
279280
280281 Q_FOREACH(const QString &searchDir, searchDirs) {
281− qDebug() << "searching for desktop file:" << searchDir << helper + ".desktop";
282282 QFileInfo fileInfo(QDir(searchDir), helper + ".desktop");
283283 if (fileInfo.exists()) {
284284 return fileInfo.absoluteFilePath();
plugins/Unity/Launcher/launchermodel.cpp−6
@@ -21,8 +21,6 @@
2121#include "launcheritem.h"
2222#include "backend/launcherbackend.h"
2323
24−#include <QDebug>
25−
2624LauncherModel::LauncherModel(QObject *parent):
2725 LauncherModelInterface(parent),
2826 m_backend(new LauncherBackend(true, this))
@@ -217,11 +215,8 @@ void LauncherModel::applicationFocused(const QString &appId)
217215 }
218216
219217 int index = findApplication(helper);
220− qDebug() << "################## found focused app index" << index << helper;
221−
222218 if (index >= 0) {
223219 m_list.at(index)->setFocused(true);
224− qDebug() << "set focused to true on" << m_list.at(index)->name();
225220 Q_EMIT dataChanged(this->index(index), this->index(index), QVector<int>() << RoleFocused);
226221 } else {
227222 // Add app to recent apps
@@ -270,7 +265,6 @@ int LauncherModel::findApplication(const QString &appId)
270265{
271266 for (int i = 0; i < m_list.count(); ++i) {
272267 LauncherItem *item = m_list.at(i);
273− qDebug() << "checking app" << item->appId();
274268 if (item->appId() == appId) {
275269 return i;
276270 }