diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-07-08 16:25:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-08 16:25:35 +0200 |
commit | 08989bde5ea2f08ece041b5b6d092ad324d2f431 (patch) | |
tree | e49083bb881ca4baf40bfe10ec4a4907f42807fa /launcher/ui/pages/modplatform/technic | |
parent | f1902a44716201d9d6431cab762663cd749b58eb (diff) | |
parent | e5f6dc1b14a03b078b69be1c4c3c5819092604c3 (diff) | |
download | PrismLauncher-08989bde5ea2f08ece041b5b6d092ad324d2f431.tar.gz PrismLauncher-08989bde5ea2f08ece041b5b6d092ad324d2f431.tar.bz2 PrismLauncher-08989bde5ea2f08ece041b5b6d092ad324d2f431.zip |
Merge pull request #839 from flowln/modrinth_packs_bug_hunt
Diffstat (limited to 'launcher/ui/pages/modplatform/technic')
-rw-r--r-- | launcher/ui/pages/modplatform/technic/TechnicModel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/launcher/ui/pages/modplatform/technic/TechnicModel.cpp b/launcher/ui/pages/modplatform/technic/TechnicModel.cpp index 9c9d1e75..742f4f2a 100644 --- a/launcher/ui/pages/modplatform/technic/TechnicModel.cpp +++ b/launcher/ui/pages/modplatform/technic/TechnicModel.cpp @@ -217,6 +217,11 @@ void Technic::ListModel::searchRequestFinished() return; } searchState = Finished; + + // When you have a Qt build with assertions turned on, proceeding here will abort the application + if (newList.size() == 0) + return; + beginInsertRows(QModelIndex(), modpacks.size(), modpacks.size() + newList.size() - 1); modpacks.append(newList); endInsertRows(); |