1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

create station wizard: workaround slow fist scrolling of the ListView

This commit is contained in:
Michael Zanetti
2013-05-19 02:36:11 +02:00
parent fcc6f5c966
commit c53800f0d3

View File

@@ -67,6 +67,12 @@ Rectangle {
onItemClicked: {
stationCreator.modeIndex = index
// FIXME: This is a workaround for the ListView scrolling too slow on the first time
// Lets reinitialize the current index to something invalid and back to 0 (what it already is) before scrolling over to page 1
stationListView.currentIndex = -1
stationListView.currentIndex = 0
stationListView.incrementCurrentIndex()
header.subtitle = modeModel.get(index).headerSubtitle + "..."
}