[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [amarok] src/browsers/playlistbrowser: Prevent incorrect playlistview by resetting grouping proxy.
From:       Bart Cerneels <bart.cerneels () kde ! org>
Date:       2012-12-24 11:49:58
Message-ID: 20121224114958.14A82A6091 () git ! kde ! org
[Download RAW message or body]

Git commit 6f56d81e2a0275af2a6170d2059911ca4e3850d9 by Bart Cerneels.
Committed on 24/12/2012 at 12:48.
Pushed by shanachie into branch 'master'.

Prevent incorrect playlistview by resetting grouping proxy.

This causes the selection and expansion state to reset but at least the
view is not completely incorrect.

M  +3    -0    src/browsers/playlistbrowser/PlaylistsInFoldersProxy.cpp

http://commits.kde.org/amarok/6f56d81e2a0275af2a6170d2059911ca4e3850d9

diff --git a/src/browsers/playlistbrowser/PlaylistsInFoldersProxy.cpp b/src=
/browsers/playlistbrowser/PlaylistsInFoldersProxy.cpp
index 921cf77..a12dbe7 100644
--- a/src/browsers/playlistbrowser/PlaylistsInFoldersProxy.cpp
+++ b/src/browsers/playlistbrowser/PlaylistsInFoldersProxy.cpp
@@ -344,6 +344,9 @@ PlaylistsInFoldersProxy::deleteFolder( const QModelInde=
x &groupIdx )
         removeRows( 0, childCount, groupIdx );
     }
     removeGroup( groupIdx );
+    //force a rebuild because groupHash might be incorrect
+    //TODO: make QtGroupingProxy adjust groupHash keys
+    buildTree();
 }
 =

 QModelIndex
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic