on xenial help sign in
Set the tabbarmodel index as we do on real code

It works better :D Fixes: 1317255

commit96b920eccabf0db40e48906cf38689b12ebfac8b authorAlbert Astals <albert.astals@canonical.com> dateFri 16 May 2014, 18:44 (12 years ago) parent8d1715946ab87f
1 file changed+1−1
tests/qmltests/Dash/tst_Dash.qml+1−1
tests/qmltests/Dash/tst_Dash.qml+1−1
@@ -127,7 +127,7 @@ Item {
127127 var dashContent = findChild(dash, "dashContent");
128128 var current_index = dashContent.currentIndex;
129129
130− tabbar.selectedIndex = data.visualIndex;
130+ tabbar.model.selectedIndex = data.visualIndex;
131131 compare(dashContent.currentIndex, data.shouldBeVisible ? data.visualIndex : current_index);
132132 }
133133 }