mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-22 07:34:21 +00:00
Workaround for missing expand/collapse icon for albums.
Looks like Qt versions up to 4.6.2 do not properly update the expander icon status when adding a child. See http://bugreports.qt.nokia.com/browse/QTBUG-7443
This commit is contained in:
@@ -675,6 +675,7 @@ class AlbumTreeView(BaseTreeView):
|
||||
if newnum > oldnum:
|
||||
for i in range(oldnum, newnum):
|
||||
item = QtGui.QTreeWidgetItem(album_item, item)
|
||||
item.setHidden(False) # Workaround to make sure the parent state gets updated
|
||||
track = album.tracks[i]
|
||||
self.panel.register_object(track, item)
|
||||
self.update_track(track, item, update_album=False)
|
||||
|
||||
Reference in New Issue
Block a user