on xenial help sign in
Clear the singleton data on scope change
14dccb5Andrea Cimitan
qml/Dash/GenericScopeView.qml+4
@@ -23,6 +23,7 @@ import Unity 0.2
23import Dash 0.1
23import Dash 0.1
24import "../Components"
24import "../Components"
25import "../Components/ListItems" as ListItems
25import "../Components/ListItems" as ListItems
26+import "Previews/PreviewSingleton"
26
27
27FocusScope {
28FocusScope {
28 id: scopeView
29 id: scopeView
@@ -127,6 +128,9 @@ FocusScope {
127 PopupUtils.close(filtersPopover)
128 PopupUtils.close(filtersPopover)
128 scopeView.filtersPopover = null;
129 scopeView.filtersPopover = null;
129 }
130 }
131+ if (!isCurrent) {
132+ PreviewSingleton.widgetExtraData = new Object();
133+ }
130 }
134 }
131
135
132 Binding {
136 Binding {