From f0a47db9e7f2fc7d60d6dc02f92a4a403c673cf2 Mon Sep 17 00:00:00 2001 From: Niels Weber Date: Thu, 25 Sep 2014 14:04:15 +0200 Subject: Revert "Fix bug when only one talk in a track" Because of things. This reverts commit eb4151c98d5a2cb2eb511fe813fd03098d1f3029. Change-Id: I72537380d20f053caed58ad65613608a9a6bf79d Reviewed-by: Caroline Chao --- qml/components/TrackSwitcher.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/components/TrackSwitcher.qml b/qml/components/TrackSwitcher.qml index 0dd6fc9..5a5c3bf 100644 --- a/qml/components/TrackSwitcher.qml +++ b/qml/components/TrackSwitcher.qml @@ -128,7 +128,7 @@ Rectangle { // Count here what is the first hour and last hour that needs to be shown in time listView // for example 10.00 11.00 12.00 ... or 08.00 09.00 10.00 - var modelCountAfterStart = Math.max(model.rowCount() - 1, 1); + var modelCountAfterStart = model.rowCount() - 1; var halfModelCount = Math.floor(modelCountAfterStart / 2) var needOneMoreItem = halfModelCount * 2 !== modelCountAfterStart for (var i = 1; i < halfModelCount; i++) { -- cgit v1.2.3