@@ -35,7 +35,7 @@ Showable {
35 onSetCurrentScopeRequested: {
35 onSetCurrentScopeRequested: {
36 if (!isSwipe || !window.active || overviewController.progress != 0) {
36 if (!isSwipe || !window.active || overviewController.progress != 0) {
37 if (overviewController.progress != 0 && window.active) animate = false;
37 if (overviewController.progress != 0 && window.active) animate = false;
38− dash.setCurrentScope(index, animate, isSwipe)
38+ dashContent.setCurrentScopeAtIndex(scopeIndex, animate, isSwipe)
39 if (overviewController.progress != 0) {
39 if (overviewController.progress != 0) {
40 if (window.active) {
40 if (window.active) {
41 dashContentCache.scheduleUpdate();
41 dashContentCache.scheduleUpdate();
@@ -48,9 +48,17 @@ Showable {
51− function setCurrentScope(scopeIndex, animate, reset) {
51+ function setCurrentScope(scopeId, animate, reset) {
52− if (scopeIndex < 0 || scopeIndex >= scopes.count) {
53+ for (var i = 0; i < scopes.count; ++i) {
54+ if (scopes.getScope(i).id == scopeId) {
60+ if (scopeIndex == -1) {
53− console.warn("No scope with index: %1".arg(scopeIndex))
61+ console.warn("No match for scope with id: %1".arg(scopeId))