mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 03:45:56 +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:
parent
ef0f7a90cb
commit
4954a99867
@ -170,6 +170,9 @@ void LibraryView::mouseReleaseEvent(QMouseEvent* e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool LibraryView::RecursivelyExpand(const QModelIndex& index, int* count) {
|
bool LibraryView::RecursivelyExpand(const QModelIndex& index, int* count) {
|
||||||
|
if (model()->canFetchMore(index))
|
||||||
|
model()->fetchMore(index);
|
||||||
|
|
||||||
int children = model()->rowCount(index);
|
int children = model()->rowCount(index);
|
||||||
if (*count + children > kRowsToShow)
|
if (*count + children > kRowsToShow)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user