on xenial help sign in
cleanup
69799deMichael Zanetti
plugins/Greeter/Unity/Launcher/launcheritem.cpp+1
@@ -32,6 +32,7 @@ LauncherItem::LauncherItem(const QString &appId, const QString &name, const QStr
32 m_countVisible(false),
32 m_countVisible(false),
33 m_focused(false),
33 m_focused(false),
34 m_alerting(false),
34 m_alerting(false),
35+ m_surfaceCount(0),
35 m_quickList(new QuickListModel(this))
36 m_quickList(new QuickListModel(this))
36{
37{
37 QuickListEntry nameAction;
38 QuickListEntry nameAction;
plugins/Unity/Launcher/launchermodel.cpp+1−1
@@ -529,7 +529,7 @@ void LauncherModel::applicationAdded(const QModelIndex &parent, int row)
529 Q_EMIT dataChanged(index(itemIndex), index(itemIndex), {RoleRecent});
529 Q_EMIT dataChanged(index(itemIndex), index(itemIndex), {RoleRecent});
530 }
530 }
531 if (item->surfaceCount() != app->surfaceCount()) {
531 if (item->surfaceCount() != app->surfaceCount()) {
532− item->setSurfaceCount(app->surfaceList()->count());
532+ item->setSurfaceCount(app->surfaceCount());
533 Q_EMIT dataChanged(index(itemIndex), index(itemIndex), {RoleSurfaceCount});
533 Q_EMIT dataChanged(index(itemIndex), index(itemIndex), {RoleSurfaceCount});
534 }
534 }
535
535
qml/Launcher/LauncherDelegate.qml+1−1
@@ -172,7 +172,7 @@ Item {
172 Label {
172 Label {
173 id: countLabel
173 id: countLabel
174 objectName: "countLabel"
174 objectName: "countLabel"
175− text: root.surfaceCount//root.count
175+ text: root.count
176 anchors.centerIn: parent
176 anchors.centerIn: parent
177 width: root.itemWidth - units.gu(1)
177 width: root.itemWidth - units.gu(1)
178 horizontalAlignment: Text.AlignHCenter
178 horizontalAlignment: Text.AlignHCenter