on xenial help sign in
cleanup
commit69799de1e6104c1627852cb727a926d2c58a53f7 authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 10 May 2016, 18:23 (10 years ago) parent030a6ff
3 files changed+3−2
plugins/Greeter/Unity/Launcher/launcheritem.cpp+1 plugins/Unity/Launcher/launchermodel.cpp+1−1 qml/Launcher/LauncherDelegate.qml+1−1
plugins/Greeter/Unity/Launcher/launcheritem.cpp+1
@@ -32,6 +32,7 @@ LauncherItem::LauncherItem(const QString &appId, const QString &name, const QStr
3232 m_countVisible(false),
3333 m_focused(false),
3434 m_alerting(false),
35+ m_surfaceCount(0),
3536 m_quickList(new QuickListModel(this))
3637{
3738 QuickListEntry nameAction;
plugins/Unity/Launcher/launchermodel.cpp+1−1
@@ -529,7 +529,7 @@ void LauncherModel::applicationAdded(const QModelIndex &parent, int row)
529529 Q_EMIT dataChanged(index(itemIndex), index(itemIndex), {RoleRecent});
530530 }
531531 if (item->surfaceCount() != app->surfaceCount()) {
532− item->setSurfaceCount(app->surfaceList()->count());
532+ item->setSurfaceCount(app->surfaceCount());
533533 Q_EMIT dataChanged(index(itemIndex), index(itemIndex), {RoleSurfaceCount});
534534 }
535535
qml/Launcher/LauncherDelegate.qml+1−1
@@ -172,7 +172,7 @@ Item {
172172 Label {
173173 id: countLabel
174174 objectName: "countLabel"
175− text: root.surfaceCount//root.count
175+ text: root.count
176176 anchors.centerIn: parent
177177 width: root.itemWidth - units.gu(1)
178178 horizontalAlignment: Text.AlignHCenter