mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-25 02:00:54 +00:00
Changed: Fix some files not deleted, see #279
This commit is contained in:
parent
cacc313034
commit
1afed943d1
1 changed files with 3 additions and 1 deletions
|
@ -1193,16 +1193,18 @@ void COperationDialog::deleteComponentsDownloadedFiles()
|
|||
QDir dir(path);
|
||||
|
||||
QStringList filter;
|
||||
filter << "*.log";
|
||||
filter << "*.7z";
|
||||
filter << "*.bnp";
|
||||
filter << "*.zip";
|
||||
filter << "*.part";
|
||||
filter << "ryzom_installer_uninstalling_old_client";
|
||||
|
||||
QStringList files = dir.entryList(filter, QDir::Files);
|
||||
|
||||
foreach(const QString &file, files)
|
||||
{
|
||||
if (!QFile::remove(file))
|
||||
if (!QFile::remove(dir.filePath(file)))
|
||||
{
|
||||
qDebug() << "Unable to delete" << file;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue