aboutsummaryrefslogtreecommitdiff
path: root/launcher/BaseVersionList.cpp
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-11-14 14:15:46 -0800
committerGitHub <noreply@github.com>2022-11-14 14:15:46 -0800
commitfece9e207bdae16574f450593346e80f50702b00 (patch)
tree030dd7d9d47fe1dc47e76059f612e89004146836 /launcher/BaseVersionList.cpp
parentf60b09568c503fc52204ad3411d8ae0091d4877b (diff)
parentaef5349aee82922fb7cedab7489bc84766453700 (diff)
downloadPrismLauncher-fece9e207bdae16574f450593346e80f50702b00.tar.gz
PrismLauncher-fece9e207bdae16574f450593346e80f50702b00.tar.bz2
PrismLauncher-fece9e207bdae16574f450593346e80f50702b00.zip
Merge pull request #448 from TheLastRar/fixup-warnings
Diffstat (limited to 'launcher/BaseVersionList.cpp')
-rw-r--r--launcher/BaseVersionList.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/BaseVersionList.cpp b/launcher/BaseVersionList.cpp
index 4ed82612..dc95e7ea 100644
--- a/launcher/BaseVersionList.cpp
+++ b/launcher/BaseVersionList.cpp
@@ -95,12 +95,12 @@ BaseVersionList::RoleList BaseVersionList::providesRoles() const
int BaseVersionList::rowCount(const QModelIndex &parent) const
{
// Return count
- return count();
+ return parent.isValid() ? 0 : count();
}
int BaseVersionList::columnCount(const QModelIndex &parent) const
{
- return 1;
+ return parent.isValid() ? 0 : 1;
}
QHash<int, QByteArray> BaseVersionList::roleNames() const