Fix permission problems on Windows (closes #1020227)

This commit is contained in:
Christophe Dumez
2012-07-05 19:10:13 +03:00
parent a85ddada25
commit 90373897d6
9 changed files with 59 additions and 57 deletions

View File

@@ -101,7 +101,7 @@ void GeoIPManager::exportEmbeddedDb() {
}
// Remove destination files
if (QFile::exists(geoipDBpath(false)))
QFile::remove(geoipDBpath(false));
fsutils::forceRemove(geoipDBpath(false));
// Copy from executable to hard disk
qDebug("%s -> %s", qPrintable(geoipDBpath(true)), qPrintable(geoipDBpath(false)));
if (!QFile::copy(geoipDBpath(true), geoipDBpath(false))) {