mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
Changed: Remove whole directory if empty
--HG-- branch : develop
This commit is contained in:
parent
533e01ea5a
commit
cd618d4402
1 changed files with 12 additions and 0 deletions
|
@ -1074,6 +1074,9 @@ void COperationDialog::deleteComponentsServers()
|
||||||
// clear list of all servers to uninstall
|
// clear list of all servers to uninstall
|
||||||
m_removeComponents.servers.clear();
|
m_removeComponents.servers.clear();
|
||||||
|
|
||||||
|
// delete Ryzom directory if all files have been deleted
|
||||||
|
if (isDirectoryEmpty(config->getInstallationDirectory(), true)) QDir(config->getInstallationDirectory()).removeRecursively();
|
||||||
|
|
||||||
emit done();
|
emit done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1144,6 +1147,9 @@ void COperationDialog::deleteComponentsProfiles()
|
||||||
// clear list of all profiles to uninstall
|
// clear list of all profiles to uninstall
|
||||||
m_removeComponents.profiles.clear();
|
m_removeComponents.profiles.clear();
|
||||||
|
|
||||||
|
// delete profiles directory if all files have been deleted
|
||||||
|
if (isDirectoryEmpty(config->getProfileDirectory(), true)) QDir(config->getProfileDirectory()).removeRecursively();
|
||||||
|
|
||||||
emit done();
|
emit done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1192,6 +1198,9 @@ void COperationDialog::deleteComponentsInstaller()
|
||||||
// reset it once it's done
|
// reset it once it's done
|
||||||
m_removeComponents.installer = false;
|
m_removeComponents.installer = false;
|
||||||
|
|
||||||
|
// delete Ryzom directory if all files have been deleted
|
||||||
|
if (isDirectoryEmpty(config->getInstallationDirectory(), true)) QDir(config->getInstallationDirectory()).removeRecursively();
|
||||||
|
|
||||||
emit success(1);
|
emit success(1);
|
||||||
emit done();
|
emit done();
|
||||||
}
|
}
|
||||||
|
@ -1227,6 +1236,9 @@ void COperationDialog::deleteComponentsDownloadedFiles()
|
||||||
// reset it once it's done
|
// reset it once it's done
|
||||||
m_removeComponents.downloadedFiles = false;
|
m_removeComponents.downloadedFiles = false;
|
||||||
|
|
||||||
|
// delete Ryzom directory if all files have been deleted
|
||||||
|
if (isDirectoryEmpty(config->getInstallationDirectory(), true)) QDir(config->getInstallationDirectory()).removeRecursively();
|
||||||
|
|
||||||
emit success(1);
|
emit success(1);
|
||||||
emit done();
|
emit done();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue