on xenial help sign in
obviously, we want to clear the list too
be676deLukáš Tinkl
plugins/Unity/Launcher/launchermodel.cpp+2−4
@@ -584,10 +584,8 @@ void LauncherModel::updateSurfaceListForApp(ApplicationInfoInterface* app)
584 surfaces.append({iface->persistentId(), name});
584 surfaces.append({iface->persistentId(), name});
585 }
585 }
586 }
586 }
587− if (!surfaces.isEmpty()) {
588− item->setSurfaces(surfaces);
587+ item->setSurfaces(surfaces);
589− Q_EMIT dataChanged(index(idx), index(idx), {RoleSurfaceCount});
588+ Q_EMIT dataChanged(index(idx), index(idx), {RoleSurfaceCount});
590− }
591}
589}
592
590
593void LauncherModel::applicationRemoved(const QModelIndex &parent, int row)
591void LauncherModel::applicationRemoved(const QModelIndex &parent, int row)