diff options
author | Niels Weber <niels.weber@digia.com> | 2014-09-25 14:04:15 +0200 |
---|---|---|
committer | Niels Weber <niels.weber@digia.com> | 2014-09-25 14:08:39 +0200 |
commit | f0a47db9e7f2fc7d60d6dc02f92a4a403c673cf2 (patch) | |
tree | 65bb389b7172b82a7a08c1978317d3f8cb2ecf18 | |
parent | eb4151c98d5a2cb2eb511fe813fd03098d1f3029 (diff) |
Revert "Fix bug when only one talk in a track"
Because of things.
This reverts commit eb4151c98d5a2cb2eb511fe813fd03098d1f3029.
Change-Id: I72537380d20f053caed58ad65613608a9a6bf79d
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
-rw-r--r-- | qml/components/TrackSwitcher.qml | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |