summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Tanner <thosrtanner2@users.sourceforge.net>2015-07-17 22:12:46 +0100
committerTom Tanner <thosrtanner2@users.sourceforge.net>2015-07-17 22:12:46 +0100
commit3a39f9087099741dd6d2a5c811671e61dcd7174b (patch)
treefd177b77f833f2ada2eeeaa998dc3436ce888b85 /src
parent18ad6565861a62d8121d84265a9f5baf1cb32b05 (diff)
small patch to show which obsolete files are being removed
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 973ae2a1..ae3bbb4c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -170,13 +170,14 @@ void cleanupDir()
"proxy.dll"
};
- qDebug("removing obsolete files");
-
for (const QString &fileName : fileNames) {
QString fullPath = qApp->applicationDirPath() + "/" + fileName;
- if (QFile::exists(fullPath)
- && !shellDelete(QStringList(fullPath), true)) {
- qDebug("failed to remove obsolete %s", qPrintable(fullPath));
+ if (QFile::exists(fullPath)) {
+ if (shellDelete(QStringList(fullPath), true)) {
+ qDebug("removed obsolete file %s", qPrintable(fullPath));
+ } else {
+ qDebug("failed to remove obsolete %s", qPrintable(fullPath));
+ }
}
}
}