diff options
author | Fayne Aldan <FayneAldan@gmail.com> | 2022-11-15 18:34:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-15 18:34:24 -0700 |
commit | e8b871ac72430c210e4750dcae8a119e8d757e20 (patch) | |
tree | 243cf3dabfb9316c92414994e47a1861497906b5 /launcher/ui/pages/modplatform/technic | |
parent | 9f30c6d94b3c3fd5dbc5f998c9e9c8083b4d57df (diff) | |
parent | cedc7754d96e4c53d50bcce2b2a0f139b840f3d0 (diff) | |
download | PrismLauncher-e8b871ac72430c210e4750dcae8a119e8d757e20.tar.gz PrismLauncher-e8b871ac72430c210e4750dcae8a119e8d757e20.tar.bz2 PrismLauncher-e8b871ac72430c210e4750dcae8a119e8d757e20.zip |
Merge branch 'PrismLauncher:develop' into version
Diffstat (limited to 'launcher/ui/pages/modplatform/technic')
-rw-r--r-- | launcher/ui/pages/modplatform/technic/TechnicModel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/launcher/ui/pages/modplatform/technic/TechnicModel.cpp b/launcher/ui/pages/modplatform/technic/TechnicModel.cpp index 742f4f2a..b2af1ac0 100644 --- a/launcher/ui/pages/modplatform/technic/TechnicModel.cpp +++ b/launcher/ui/pages/modplatform/technic/TechnicModel.cpp @@ -80,14 +80,14 @@ QVariant Technic::ListModel::data(const QModelIndex& index, int role) const return QVariant(); } -int Technic::ListModel::columnCount(const QModelIndex&) const +int Technic::ListModel::columnCount(const QModelIndex& parent) const { - return 1; + return parent.isValid() ? 0 : 1; } -int Technic::ListModel::rowCount(const QModelIndex&) const +int Technic::ListModel::rowCount(const QModelIndex& parent) const { - return modpacks.size(); + return parent.isValid() ? 0 : modpacks.size(); } void Technic::ListModel::searchWithTerm(const QString& term) |