on xenial help sign in
Switching who we show
911be18Ted Gould
plugins/Unity/Launcher/backend/launcherbackend.cpp+4−1
@@ -363,6 +363,9 @@ LauncherBackendItem* LauncherBackend::getItem (const QString &appId) const
363 }
363 }
364 }
364 }
365
365
366+ if (!item)
367+ qDebug() << "Unable to find item for: " << appId;
368+
366 return item;
369 return item;
367}
370}
368
371
@@ -459,7 +462,7 @@ QString LauncherBackend::introspect (const QString &path) const
459 if (path == "/com/canonical/unity/launcher/" || path == "/com/canonical/unity/launcher") {
462 if (path == "/com/canonical/unity/launcher/" || path == "/com/canonical/unity/launcher") {
460 QString nodes;
463 QString nodes;
461
464
462− Q_FOREACH(const QString &appId, m_storedApps) {
465+ Q_FOREACH(const QString &appId, m_itemCache.keys()) {
463 nodes.append("<node name=\"");
466 nodes.append("<node name=\"");
464 nodes.append(encodeAppId(appId));
467 nodes.append(encodeAppId(appId));
465 nodes.append("\"/>\n");
468 nodes.append("\"/>\n");