@@ -82,7 +82,7 @@ void LauncherBackend::setStoredApplications(const QStringList &appIds)
8282 m_itemCache.insert(appId, item);
8383 } else {
8484 // Cannot find any data for that app... ignoring it.
85− qDebug() << "cannot find desktop file for" << appId << ". discarding app";
85+ qWarning() << "cannot find desktop file for" << appId << ". discarding app.";
8686 m_storedApps.removeAll(appId);
8787 }
8888 }
@@ -213,16 +213,12 @@ void LauncherBackend::syncFromAccounts()
213213
214214 m_storedApps.clear();
215215
216− qDebug() << "syncing from accounts" << m_accounts << m_user;
217−
218216 if (m_accounts && !m_user.isEmpty()) {
219217 QVariant variant = m_accounts->getUserProperty(m_user, "launcher-items");
220218 apps = qdbus_cast<QList<QVariantMap>>(variant.value<QDBusArgument>());
221219 defaults = isDefaultsItem(apps);
222220 }
223221
224− qDebug() << "--------------------- should load defaults?" << defaults;
225−
226222 if (m_accounts && defaults) { // Checking accounts as it'll be null when !useStorage
227223 QGSettings gSettings("com.canonical.Unity.Launcher", "/com/canonical/unity/launcher/");
228224 Q_FOREACH(const QString &entry, gSettings.get("favorites").toStringList()) {
@@ -243,7 +239,6 @@ void LauncherBackend::syncFromAccounts()
243239 }
244240 } else {
245241 for (const QVariant &app: apps) {
246− qDebug() << "should load app" << app;
247242 loadFromVariant(app.toMap());
248243 }
249244 }
@@ -251,19 +246,15 @@ void LauncherBackend::syncFromAccounts()
251246
252247void LauncherBackend::syncToAccounts()
253248{
254− qDebug() << "syncing to accounts" << m_accounts << m_user << m_storedApps;
255249 if (m_accounts && !m_user.isEmpty()) {
256250 QList<QVariantMap> items;
257251
258252 Q_FOREACH(const QString &appId, m_storedApps) {
259− qDebug() << "appending item" << appId;
260253 items << itemToVariant(appId);
261254 }
262255
263− qDebug() << "syncing apps" << items;
264256 m_accounts->setUserProperty(m_user, "launcher-items", QVariant::fromValue(items));
265257 }
266− qDebug() << "done synving";
267258}
268259
269260QString LauncherBackend::findDesktopFile(const QString &appId) const
@@ -340,6 +331,5 @@ bool LauncherBackend::isDefaultsItem(const QList<QVariantMap> &apps) const
340331 // To differentiate between an empty list and a list that hasn't been set
341332 // yet (and should thus be populated with the defaults), we use a special
342333 // list of one item with the 'defaults' field set to true.
343− qDebug() << "checking isDefaults" << apps;
344334 return (apps.size() == 1 && apps[0].value("defaults").toBool());
345335}