diff --git a/CMakeLists.txt b/CMakeLists.txt index b3ff693cf..e3ce6b1c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ set(DEBIAN_PACKAGE_SECTION "kde4") set(CPACK_SOURCE_GENERATOR "TBZ2") set(CPACK_PACKAGE_VERSION_MAJOR "0") set(CPACK_PACKAGE_VERSION_MINOR "6") -set(CPACK_PACKAGE_VERSION_PATCH "0") +set(CPACK_PACKAGE_VERSION_PATCH "1") set(CPACK_PACKAGE_CONTACT "Craig Drummond ") set(CANTATA_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}") set(CANTATA_VERSION_FULL "${CANTATA_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}") diff --git a/ChangeLog b/ChangeLog index bdc0f7f14..37fc834b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +0.6.1 +----- +1. Fix grouped playqueue when we have repeated instances of an album. Now when + an album is expanded/collapsed - all instances are expanded/collapsed. + 0.6.0 ----- 1. Grouped style for playlists. diff --git a/gui/settings.cpp b/gui/settings.cpp index 038092180..c42b01378 100644 --- a/gui/settings.cpp +++ b/gui/settings.cpp @@ -391,7 +391,7 @@ bool Settings::playQueueAutoExpand() bool Settings::playQueueStartClosed() { - return GET_BOOL("playQueueStartClosed", true); + return GET_BOOL("playQueueStartClosed", version()drawPrimitive(QStyle::PE_PanelItemViewItem, &option, painter, 0L); painter->restore(); if (!state && !view->isExpanded(song.key, collection) && view->isCurrentAlbum(song.key)) { - state=index.data(GroupedView::Role_CurrentStatus).toInt(); + QVariant cs=index.data(GroupedView::Role_CurrentStatus); + if (cs.isValid()) { + state=cs.toInt(); + } } } else { QApplication::style()->drawPrimitive(QStyle::PE_PanelItemViewItem, &option, painter, 0L); @@ -493,13 +496,13 @@ void GroupedView::toggle(const QModelIndex &idx) } if (model()) { + QModelIndex parent=idx.parent(); quint32 count=model()->rowCount(idx.parent()); - for (quint32 i=idx.row()+1; iindex(i, 0, idx.parent()).data(GroupedView::Role_Key).toUInt(); - if (indexKey==key) { - setRowHidden(i, idx.parent(), toBeHidden); - } else { - break; + for (quint32 i=0; iindex(i, 0, parent); + quint16 key=index.data(GroupedView::Role_Key).toUInt(); + if (indexKey==key && !isAlbumHeader(index)) { + setRowHidden(i, parent, toBeHidden); } }