diff options
| author | AL <26797547+Al12rs@users.noreply.github.com> | 2020-08-26 14:15:11 +0200 |
|---|---|---|
| committer | AL <26797547+Al12rs@users.noreply.github.com> | 2020-08-26 14:15:11 +0200 |
| commit | 743b03ceba222fb848f3d80acc91f9a362394d9c (patch) | |
| tree | 6266749a74aa62f4a07e9ed7b62a265fa73d9b0b /src/modlist.cpp | |
| parent | 6f232d566e9a7b67eae0cef4aaa46938072b3c20 (diff) | |
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) |
