Changed: Fix some files not deleted, see #279

This commit is contained in:
kervala 2016-09-20 21:57:41 +02:00
parent cacc313034
commit 1afed943d1

View file

@ -1193,16 +1193,18 @@ void COperationDialog::deleteComponentsDownloadedFiles()
QDir dir(path); QDir dir(path);
QStringList filter; QStringList filter;
filter << "*.log";
filter << "*.7z"; filter << "*.7z";
filter << "*.bnp"; filter << "*.bnp";
filter << "*.zip"; filter << "*.zip";
filter << "*.part"; filter << "*.part";
filter << "ryzom_installer_uninstalling_old_client";
QStringList files = dir.entryList(filter, QDir::Files); QStringList files = dir.entryList(filter, QDir::Files);
foreach(const QString &file, files) foreach(const QString &file, files)
{ {
if (!QFile::remove(file)) if (!QFile::remove(dir.filePath(file)))
{ {
qDebug() << "Unable to delete" << file; qDebug() << "Unable to delete" << file;
} }