on xenial help sign in
obviously, we want to clear the list too
commitbe676de16d89804ec91366e7c9bc48fd6fcc20bc authorLukáš Tinkl <lukas.tinkl@canonical.com> dateTue 21 Mar 2017, 14:49 (10 years ago) parent0243190
1 file changed+2−4
plugins/Unity/Launcher/launchermodel.cpp+2−4
plugins/Unity/Launcher/launchermodel.cpp+2−4
@@ -584,10 +584,8 @@ void LauncherModel::updateSurfaceListForApp(ApplicationInfoInterface* app)
584584 surfaces.append({iface->persistentId(), name});
585585 }
586586 }
587− if (!surfaces.isEmpty()) {
588− item->setSurfaces(surfaces);
589− Q_EMIT dataChanged(index(idx), index(idx), {RoleSurfaceCount});
590− }
587+ item->setSurfaces(surfaces);
588+ Q_EMIT dataChanged(index(idx), index(idx), {RoleSurfaceCount});
591589}
592590
593591void LauncherModel::applicationRemoved(const QModelIndex &parent, int row)