on xenial help sign in
Fixed testLauncherModelAS.
commite7083980ff6b1e09fd53f270bf90404a8c3d5ff0 authorMirco Müller <mirco.mueller@ubuntu.com> dateWed 1 Jul 2015, 15:31 (11 years ago) parentc41f0ba
2 files changed+2−1
plugins/Greeter/Unity/Launcher/launchermodelas.cpp+1 tests/plugins/Greeter/Unity/Launcher/launchermodelastest.cpp+1−1
plugins/Greeter/Unity/Launcher/launchermodelas.cpp+1
@@ -256,6 +256,7 @@ void LauncherModel::refresh()
256256 item->setPinned(true);
257257 item->setCount(entry.toMap().value("count").toInt());
258258 item->setCountVisible(entry.toMap().value("countVisible").toBool());
259+ item->setProgress(entry.toMap().value("progress").toInt());
259260 beginInsertRows(QModelIndex(), newPosition, newPosition);
260261 m_list.insert(newPosition, item);
261262 endInsertRows();
tests/plugins/Greeter/Unity/Launcher/launchermodelastest.cpp+1−1
@@ -43,7 +43,7 @@ private Q_SLOTS:
4343 item.insert("name", "Item 1");
4444 item.insert("icon", "fake.svg");
4545 item.insert("count", 0);
46− item.insert("progress", 42);
46+ item.insert("progress", 0);
4747 item.insert("countVisible", false);
4848 item.insert("pinned", true);
4949 list.append(item);