diff options
author | TheLastRar <TheLastRar@users.noreply.github.com> | 2022-11-13 14:35:55 +0000 |
---|---|---|
committer | TheLastRar <TheLastRar@users.noreply.github.com> | 2022-11-14 19:05:57 +0000 |
commit | fce323b945d5e8365c64c61e3ba592cb2b7446c4 (patch) | |
tree | 664b89393cbb6e201a45216e773b3ef643cebf3b /launcher/icons/IconList.cpp | |
parent | 5558f3d2ccde1f1a043fbb82c0856ae3241dc20f (diff) | |
download | PrismLauncher-fce323b945d5e8365c64c61e3ba592cb2b7446c4.tar.gz PrismLauncher-fce323b945d5e8365c64c61e3ba592cb2b7446c4.tar.bz2 PrismLauncher-fce323b945d5e8365c64c61e3ba592cb2b7446c4.zip |
Check parent in rowCount/columnCount/canFetchMore
Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com>
Diffstat (limited to 'launcher/icons/IconList.cpp')
-rw-r--r-- | launcher/icons/IconList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/icons/IconList.cpp b/launcher/icons/IconList.cpp index a1f77cc3..01043ad2 100644 --- a/launcher/icons/IconList.cpp +++ b/launcher/icons/IconList.cpp @@ -302,7 +302,7 @@ QVariant IconList::data(const QModelIndex &index, int role) const int IconList::rowCount(const QModelIndex &parent) const { - return icons.size(); + return parent.isValid() ? 0 : icons.size(); } void IconList::installIcons(const QStringList &iconFiles) |