aboutsummaryrefslogtreecommitdiff
path: root/launcher/VersionProxyModel.cpp
diff options
context:
space:
mode:
authorFayne Aldan <FayneAldan@gmail.com>2022-11-15 18:34:24 -0700
committerGitHub <noreply@github.com>2022-11-15 18:34:24 -0700
commite8b871ac72430c210e4750dcae8a119e8d757e20 (patch)
tree243cf3dabfb9316c92414994e47a1861497906b5 /launcher/VersionProxyModel.cpp
parent9f30c6d94b3c3fd5dbc5f998c9e9c8083b4d57df (diff)
parentcedc7754d96e4c53d50bcce2b2a0f139b840f3d0 (diff)
downloadPrismLauncher-e8b871ac72430c210e4750dcae8a119e8d757e20.tar.gz
PrismLauncher-e8b871ac72430c210e4750dcae8a119e8d757e20.tar.bz2
PrismLauncher-e8b871ac72430c210e4750dcae8a119e8d757e20.zip
Merge branch 'PrismLauncher:develop' into version
Diffstat (limited to 'launcher/VersionProxyModel.cpp')
-rw-r--r--launcher/VersionProxyModel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/VersionProxyModel.cpp b/launcher/VersionProxyModel.cpp
index 032f21f9..6aba268d 100644
--- a/launcher/VersionProxyModel.cpp
+++ b/launcher/VersionProxyModel.cpp
@@ -311,14 +311,14 @@ QModelIndex VersionProxyModel::index(int row, int column, const QModelIndex &par
int VersionProxyModel::columnCount(const QModelIndex &parent) const
{
- return m_columns.size();
+ return parent.isValid() ? 0 : m_columns.size();
}
int VersionProxyModel::rowCount(const QModelIndex &parent) const
{
if(sourceModel())
{
- return sourceModel()->rowCount();
+ return sourceModel()->rowCount(parent);
}
return 0;
}