summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2019-03-09 22:12:10 -0600
committerLostDragonist <lost.dragonist@gmail.com>2019-03-09 22:12:10 -0600
commitdf142f83107a41a4d3e03fc512869de96ab634f9 (patch)
tree194b4c0548198ad733f59d7d089c9ab6556a305c /src/mainwindow.cpp
parentc49fce871ae4f428c0181b0ea7dd396c85c735d2 (diff)
Refresh mod list after clearing overwrite folder
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 9f185349..a0632d3c 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -3724,8 +3724,12 @@ void MainWindow::clearOverwrite()
QStringList delList;
for (auto f : overwriteDir.entryList(QDir::AllDirs | QDir::Files | QDir::NoDotAndDotDot))
delList.push_back(overwriteDir.absoluteFilePath(f));
- shellDelete(delList, true);
- updateProblemsButton();
+ if (shellDelete(delList, true)) {
+ updateProblemsButton();
+ m_OrganizerCore.refreshModList();
+ } else {
+ qCritical("Delete operation failed: %s", qUtf8Printable(windowsErrorString(::GetLastError())));
+ }
}
}
}