1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 19:31:02 +01:00

Call fetchMore() when recursively expanding the library view, to fix a bug where empty items would appear when you searched the library.

This commit is contained in:
David Sansome 2010-05-16 22:28:26 +00:00
parent ef0f7a90cb
commit 4954a99867

View File

@ -170,6 +170,9 @@ void LibraryView::mouseReleaseEvent(QMouseEvent* e) {
}
bool LibraryView::RecursivelyExpand(const QModelIndex& index, int* count) {
if (model()->canFetchMore(index))
model()->fetchMore(index);
int children = model()->rowCount(index);
if (*count + children > kRowsToShow)
return false;