summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
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())));
+ }
}
}
}