Make tryGenericScopeView show the scope
commitd8bc2922f3096f28325b0d357ae749b2610dd69d
authorAlbert Astals Cid <albert.astals@canonical.com>
dateTue 9 Aug 2016, 14:56 (10 years ago)
parent166ff93
tests/qmltests/Dash/tst_GenericScopeView.qml+6−1
@@ -40,7 +40,12 @@ Item {
4040 Scopes {
4141 id: scopes
4242 // for tryGenericScopeView
43− onLoadedChanged: if (loaded) genericScopeView.scope = scopes.getScope(2);
43+ onLoadedChanged: {
44+ if (loaded) {
45+ genericScopeView.scope = scopes.getScope(2);
46+ genericScopeView.isCurrent = true;
47+ }
48+ }
4449 }
4550
4651 MockScope {