also cancel any pending actions
commit9bdae0bbd3c2372d007d36b5128431ad382b9d37
authorMichael Zanetti <michael.zanetti@canonical.com>
dateWed 2 Oct 2013, 11:03 (13 years ago)
parent2867297
Dash/GenericScopeView.qml+3−1
@@ -352,10 +352,12 @@ ScopeView {
352352 onScreen = true;
353353 categoryDelegate.highlightIndex = currentIndex;
354354 } else {
355+ // Cancel any pending preview requests or actions
356+ previewListView.currentItem.previewData.cancelAction();
357+ scopeView.scope.cancelActivation();
355358 model = undefined;
356359 categoryView.correctExpandedCategory();
357360 categoryDelegate.highlightIndex = -1;
358− scopeView.scope.cancelActivation();
359361 }
360362 }
361363