@@ -35,7 +35,7 @@ Showable {
3535 onSetCurrentScopeRequested: {
3636 if (!isSwipe || !window.active || overviewController.progress != 0) {
3737 if (overviewController.progress != 0 && window.active) animate = false;
38− dash.setCurrentScope(index, animate, isSwipe)
38+ dashContent.setCurrentScopeAtIndex(scopeIndex, animate, isSwipe)
3939 if (overviewController.progress != 0) {
4040 if (window.active) {
4141 dashContentCache.scheduleUpdate();
@@ -48,9 +48,17 @@ Showable {
4848 }
4949 }
5050
51− function setCurrentScope(scopeIndex, animate, reset) {
52− if (scopeIndex < 0 || scopeIndex >= scopes.count) {
53− console.warn("No scope with index: %1".arg(scopeIndex))
51+ function setCurrentScope(scopeId, animate, reset) {
52+ var scopeIndex = -1;
53+ for (var i = 0; i < scopes.count; ++i) {
54+ if (scopes.getScope(i).id == scopeId) {
55+ scopeIndex = i;
56+ break;
57+ }
58+ }
59+
60+ if (scopeIndex == -1) {
61+ console.warn("No match for scope with id: %1".arg(scopeId))
5462 return
5563 }
5664