summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rbutil/rbutilqt/configure.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index 507d0bec41..14080a552c 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -875,13 +875,7 @@ void Config::cacheClear()
return;
}
QDir dir(cache);
- QStringList fn;
- fn = dir.entryList(QStringList("*"), QDir::Files, QDir::Name);
-
- for(int i = 0; i < fn.size(); i++) {
- QString f = cache + fn.at(i);
- QFile::remove(f);
- }
+ dir.removeRecursively();
updateCacheInfo(RbSettings::value(RbSettings::CachePath).toString());
}