diff options
author | TheLastRar <TheLastRar@users.noreply.github.com> | 2022-11-14 19:04:41 +0000 |
---|---|---|
committer | TheLastRar <TheLastRar@users.noreply.github.com> | 2022-11-14 19:05:57 +0000 |
commit | aef5349aee82922fb7cedab7489bc84766453700 (patch) | |
tree | 2305fc20ad37f2f665b5b8f1d1bd477124efcea4 /launcher/minecraft/auth/AccountList.cpp | |
parent | ac993aa31fcab79473f62c2d958b91e921b6930e (diff) | |
download | PrismLauncher-aef5349aee82922fb7cedab7489bc84766453700.tar.gz PrismLauncher-aef5349aee82922fb7cedab7489bc84766453700.tar.bz2 PrismLauncher-aef5349aee82922fb7cedab7489bc84766453700.zip |
Pass index.parent() as parent parameter for rowCount
Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com>
Diffstat (limited to 'launcher/minecraft/auth/AccountList.cpp')
-rw-r--r-- | launcher/minecraft/auth/AccountList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/auth/AccountList.cpp b/launcher/minecraft/auth/AccountList.cpp index 6ea62a50..9e2fd111 100644 --- a/launcher/minecraft/auth/AccountList.cpp +++ b/launcher/minecraft/auth/AccountList.cpp @@ -421,7 +421,7 @@ int AccountList::columnCount(const QModelIndex &parent) const Qt::ItemFlags AccountList::flags(const QModelIndex &index) const { - if (index.row() < 0 || index.row() >= rowCount(index) || !index.isValid()) + if (index.row() < 0 || index.row() >= rowCount(index.parent()) || !index.isValid()) { return Qt::NoItemFlags; } |