on xenial help sign in
wops vars fighting parameters
b3e7770Albert Astals
qml/Dash/ScopesOverview.qml+2−2
@@ -215,8 +215,8 @@ Item {
215 root.favoriteSelected(index)
215 root.favoriteSelected(index)
216 } else {
216 } else {
217 var favoriteScopesItem = middleItems.itemAt(0).item;
217 var favoriteScopesItem = middleItems.itemAt(0).item;
218− var index = favoriteScopesItem.model.scopeIndex(itemModel.scopeId);
218+ var scopeIndex = favoriteScopesItem.model.scopeIndex(itemModel.scopeId);
219− if (index > 0) {
219+ if (scopeIndex > 0) {
220 root.allFavoriteSelected(itemModel.scopeId);
220 root.allFavoriteSelected(itemModel.scopeId);
221 } else {
221 } else {
222 root.allSelected(itemModel.scopeId, item.mapToItem(null, 0, 0));
222 root.allSelected(itemModel.scopeId, item.mapToItem(null, 0, 0));