From 846450a6c7ace2c47a77f39e78a8bf0851310c7c Mon Sep 17 00:00:00 2001 From: nhnielsen Date: Wed, 3 Oct 2007 13:28:44 +0000 Subject: [PATCH] Shuffle all tracks when we move an item. This is slow, but keeps the view from screwing up item positions too badly. An obvious candidate for a later refactoring when everything works git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/extragear/multimedia/amarok@720681 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/playlist/PlaylistGraphicsView.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/playlist/PlaylistGraphicsView.cpp b/src/playlist/PlaylistGraphicsView.cpp index 988a31d2c..e8752f099 100644 --- a/src/playlist/PlaylistGraphicsView.cpp +++ b/src/playlist/PlaylistGraphicsView.cpp @@ -204,7 +204,8 @@ Playlist::GraphicsView::moveItem( Playlist::GraphicsItem *moveMe, Playlist::Grap m_tracks.at( i )->setRow( i ); - shuffleTracks( moveMeIndex, aboveIndex ); + //shuffleTracks( moveMeIndex, aboveIndex ); + shuffleTracks( 0 ); } else { @@ -215,7 +216,8 @@ Playlist::GraphicsView::moveItem( Playlist::GraphicsItem *moveMe, Playlist::Grap for ( i = aboveIndex; i < m_tracks.count(); i++ ) m_tracks.at( i )->setRow( i ); - shuffleTracks( aboveIndex, moveMeIndex + 1); + //shuffleTracks( aboveIndex, moveMeIndex + 1); + shuffleTracks( 0 ); } } -- 2.11.4.GIT