diff options
| author | Al <26797547+Al12rs@users.noreply.github.com> | 2020-08-26 11:23:03 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-26 11:23:03 -0700 |
| commit | df26f7588082468d2348c678e8c4b016fe6a0cc4 (patch) | |
| tree | ae5bbca6c439c76a34c4f8882be449ece6650de4 /src/modlist.cpp | |
| parent | 6e0919ab2cf2ce26097f3bd0bbd7f47cc60c592d (diff) | |
| parent | 743b03ceba222fb848f3d80acc91f9a362394d9c (diff) | |
Merge pull request #1218 from Al12rs/backup_remove_no_uninstall
Don't mark a file as uninstalled when removing a backup.
Diffstat (limited to 'src/modlist.cpp')
| -rw-r--r-- | src/modlist.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp index 06e5e9bf..cb08c6f4 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -1156,8 +1156,10 @@ void ModList::removeRowForce(int row, const QModelIndex &parent) if (wasEnabled) { emit removeOrigin(modInfo->name()); } - - emit modUninstalled(modInfo->getInstallationFile()); + auto flags = modInfo->getFlags(); + if (std::find(flags.begin(), flags.end(), ModInfo::FLAG_BACKUP) == flags.end()) { + emit modUninstalled(modInfo->getInstallationFile()); + } } bool ModList::removeRows(int row, int count, const QModelIndex &parent) |
