cancel any pending preview activations when closing the preview
commit2867297e22bec19a389d3c35d562dcd5ed6c3e21
authorMichael Zanetti <michael.zanetti@canonical.com>
dateTue 1 Oct 2013, 16:52 (13 years ago)
parente4d2303
Dash/GenericScopeView.qml+5−4
@@ -349,12 +349,13 @@ ScopeView {
349349
350350 onOpenChanged: {
351351 if (open) {
352− onScreen = true
353− categoryDelegate.highlightIndex = currentIndex
352+ onScreen = true;
353+ categoryDelegate.highlightIndex = currentIndex;
354354 } else {
355− model = undefined
355+ model = undefined;
356356 categoryView.correctExpandedCategory();
357− categoryDelegate.highlightIndex = -1
357+ categoryDelegate.highlightIndex = -1;
358+ scopeView.scope.cancelActivation();
358359 }
359360 }
360361