aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/auth
diff options
context:
space:
mode:
authorTheLastRar <TheLastRar@users.noreply.github.com>2022-11-13 14:35:55 +0000
committerTheLastRar <TheLastRar@users.noreply.github.com>2022-11-14 19:05:57 +0000
commitfce323b945d5e8365c64c61e3ba592cb2b7446c4 (patch)
tree664b89393cbb6e201a45216e773b3ef643cebf3b /launcher/minecraft/auth
parent5558f3d2ccde1f1a043fbb82c0856ae3241dc20f (diff)
downloadPrismLauncher-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/minecraft/auth')
-rw-r--r--launcher/minecraft/auth/AccountList.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/launcher/minecraft/auth/AccountList.cpp b/launcher/minecraft/auth/AccountList.cpp
index b3b57c74..6ea62a50 100644
--- a/launcher/minecraft/auth/AccountList.cpp
+++ b/launcher/minecraft/auth/AccountList.cpp
@@ -408,15 +408,15 @@ QVariant AccountList::headerData(int section, Qt::Orientation orientation, int r
}
}
-int AccountList::rowCount(const QModelIndex &) const
+int AccountList::rowCount(const QModelIndex &parent) const
{
// Return count
- return count();
+ return parent.isValid() ? 0 : count();
}
-int AccountList::columnCount(const QModelIndex &) const
+int AccountList::columnCount(const QModelIndex &parent) const
{
- return NUM_COLUMNS;
+ return parent.isValid() ? 0 : NUM_COLUMNS;
}
Qt::ItemFlags AccountList::flags(const QModelIndex &index) const