@@ -17,7 +17,6 @@
17import QtQuick 2.0
17import QtQuick 2.0
18import Ubuntu.Components 0.1
18import Ubuntu.Components 0.1
19import Unity 0.2
19import Unity 0.2
21import "../Components"
20import "../Components"
@@ -189,30 +188,23 @@ Item {
189 width: parent.width
188 width: parent.width
190 style: DashContentTabBarStyle {}
189 style: DashContentTabBarStyle {}
192− SortFilterProxyModel {
191+ model: dashContentList.model
195− model: dashContentList.model
197− property int selectedIndex: -1
198− onSelectedIndexChanged: {
193+ onSelectedIndexChanged: {
199− if (dashContentList.currentIndex == -1 && tabBar.selectedIndex != -1) {
194+ if (dashContentList.currentIndex == -1 && tabBar.selectedIndex != -1) {
200− // TODO This together with the Timer below
195+ // TODO This together with the Timer below
201− // are a workaround for the first tab sometimes not showing the text.
196+ // are a workaround for the first tab sometimes not showing the text.
202− // But Tabs are going away in the future so not sure if makes
197+ // But Tabs are going away in the future so not sure if makes
203− // sense invetigating what's the problem at this stage
198+ // sense invetigating what's the problem at this stage
204− selectionModeTimer.restart();
199+ selectionModeTimer.restart();
206− dashContentList.currentIndex = selectedIndex;
201+ dashContentList.currentIndex = selectedIndex;
210− model: tabBarModel.count > 0 ? tabBarModel : null
212 Connections {
204 Connections {
213 target: dashContentList
205 target: dashContentList
214 onCurrentIndexChanged: {
206 onCurrentIndexChanged: {
215− tabBarModel.selectedIndex = dashContentList.currentIndex
207+ tabBar.selectedIndex = dashContentList.currentIndex