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
1 changed files with 3 additions and 0 deletions

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;