@@ -186,16 +186,18 @@ Item {
186 objectName: "tabbar"
186 objectName: "tabbar"
187 height: units.gu(6.5)
187 height: units.gu(6.5)
188 width: parent.width
188 width: parent.width
189− selectionMode: false
190 style: DashContentTabBarStyle {}
189 style: DashContentTabBarStyle {}
192− // TODO This together with the __styleInstance onModelChanged below
193− // are a workaround for the first tab sometimes not showing the text.
194− // But Tabs are going away in the future so not sure if makes
195− // sense invetigating what's the problem at this stage
196− model: dashContentList.model.count > 0 ? dashContentList.model : null
191+ model: dashContentList.model
198 onSelectedIndexChanged: {
193 onSelectedIndexChanged: {
194+ if (dashContentList.currentIndex == -1 && tabBar.selectedIndex != -1) {
195+ // TODO This together with the Timer below
196+ // are a workaround for the first tab sometimes not showing the text.
197+ // But Tabs are going away in the future so not sure if makes
198+ // sense invetigating what's the problem at this stage
199+ selectionModeTimer.restart();
199 dashContentList.currentIndex = selectedIndex;
201 dashContentList.currentIndex = selectedIndex;
@@ -206,12 +208,10 @@ Item {
209− Connections {
211+ Timer {
210− target: __styleInstance
212+ id: selectionModeTimer
211− onModelChanged: {
213+ interval: 1
212− tabBar.selectedIndex = -1;
214+ onTriggered: tabBar.selectionMode = false
213− tabBar.selectedIndex = 0;