diff options
author | flow <thiagodonato300@gmail.com> | 2022-04-21 15:47:46 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-05-23 14:43:10 -0300 |
commit | 67e0214fa5c1ff36d3718c3fb68107bf0dfe7e5d (patch) | |
tree | ba1a87a357855dc2629d1d51a08dda125cc67923 /launcher/minecraft | |
parent | e17b6804a7424dd5161662c4ef92972f3311675c (diff) | |
download | PrismLauncher-67e0214fa5c1ff36d3718c3fb68107bf0dfe7e5d.tar.gz PrismLauncher-67e0214fa5c1ff36d3718c3fb68107bf0dfe7e5d.tar.bz2 PrismLauncher-67e0214fa5c1ff36d3718c3fb68107bf0dfe7e5d.zip |
fix: don't try to delete mods multiple times
Shows a more helpful message if there's a parsing error when reading the
index file.
Also fixes a clazy warning with using the `.data()` method in a
temporary QByteArray object.
Diffstat (limited to 'launcher/minecraft')
-rw-r--r-- | launcher/minecraft/mod/ModFolderModel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/minecraft/mod/ModFolderModel.cpp b/launcher/minecraft/mod/ModFolderModel.cpp index e034e35e..b2d8f03e 100644 --- a/launcher/minecraft/mod/ModFolderModel.cpp +++ b/launcher/minecraft/mod/ModFolderModel.cpp @@ -339,6 +339,9 @@ bool ModFolderModel::deleteMods(const QModelIndexList& indexes) for (auto i: indexes) { + if(i.column() != 0) { + continue; + } Mod &m = mods[i.row()]; auto index_dir = indexDir(); m.destroy(index_dir); |