on xenial help sign in
Truth is hard
commit92d0b1af8fbec641de663337e85633a8974f545b authorTed Gould <ted@gould.cx> dateFri 11 Apr 2014, 17:14 (13 years ago) parentd0edf4e
1 file changed+6−4
plugins/Unity/Launcher/backend/launcherbackend.cpp+6−4
plugins/Unity/Launcher/backend/launcherbackend.cpp+6−4
@@ -164,7 +164,7 @@ int LauncherBackend::count(const QString &appId) const
164164 int count = -1;
165165 LauncherBackendItem *item = getItem(appId);
166166
167− if (!item) {
167+ if (item) {
168168 if (item->countVisible) {
169169 count = item->count;
170170 }
@@ -178,7 +178,7 @@ void LauncherBackend::setCount(const QString &appId, int count) const
178178 LauncherBackendItem *item = getItem(appId);
179179
180180 bool emitchange = false;
181− if (!item) {
181+ if (item) {
182182 emitchange = (item->count != count);
183183 item->count = count;
184184 }
@@ -198,7 +198,7 @@ bool LauncherBackend::countVisible(const QString &appId) const
198198 bool visible = false;
199199 LauncherBackendItem *item = getItem(appId);
200200
201− if (!item) {
201+ if (item) {
202202 visible = item->countVisible;
203203 }
204204
@@ -210,9 +210,11 @@ void LauncherBackend::setCountVisible(const QString &appId, bool visible) const
210210 LauncherBackendItem *item = getItem(appId);
211211
212212 bool emitchange = false;
213− if (!item) {
213+ if (item) {
214214 emitchange = (item->countVisible != visible);
215215 item->countVisible = visible;
216+ } else {
217+ qDebug() << "Unable to find:" << appId;
216218 }
217219
218220 if (emitchange) {