diff options
author | flow <flowlnlnln@gmail.com> | 2022-11-14 14:15:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 14:15:46 -0800 |
commit | fece9e207bdae16574f450593346e80f50702b00 (patch) | |
tree | 030dd7d9d47fe1dc47e76059f612e89004146836 /launcher/ui/pages/modplatform/technic | |
parent | f60b09568c503fc52204ad3411d8ae0091d4877b (diff) | |
parent | aef5349aee82922fb7cedab7489bc84766453700 (diff) | |
download | PrismLauncher-fece9e207bdae16574f450593346e80f50702b00.tar.gz PrismLauncher-fece9e207bdae16574f450593346e80f50702b00.tar.bz2 PrismLauncher-fece9e207bdae16574f450593346e80f50702b00.zip |
Merge pull request #448 from TheLastRar/fixup-warnings
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) |