mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 13:01:42 +00:00
Changed: Fix the temporary directory, see #279
This commit is contained in:
parent
2c6719b8c8
commit
766def2c9b
1 changed files with 5 additions and 2 deletions
|
@ -161,13 +161,16 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
foreach(const QString &dir, dirs)
|
foreach(const QString &dir, dirs)
|
||||||
{
|
{
|
||||||
QDir(dir).removeRecursively();
|
// delete each directory
|
||||||
|
QDir dirToRemove(tempDir);
|
||||||
|
dirToRemove.cd(dir);
|
||||||
|
dirToRemove.removeRecursively();
|
||||||
}
|
}
|
||||||
|
|
||||||
tempPath += QString("/ryzom_installer_%1").arg(QDateTime::currentMSecsSinceEpoch());
|
tempPath += QString("/ryzom_installer_%1").arg(QDateTime::currentMSecsSinceEpoch());
|
||||||
|
|
||||||
// copy installer and required files to TEMP directory
|
// copy installer and required files to TEMP directory
|
||||||
if (copyInstallerFiles(config.getInstallerRequiredFiles(), tempPath))
|
if (QDir().mkdir(tempPath) && copyInstallerFiles(config.getInstallerRequiredFiles(), tempPath))
|
||||||
{
|
{
|
||||||
QString tempFile = tempPath + "/" + QFileInfo(QApplication::applicationFilePath()).fileName();
|
QString tempFile = tempPath + "/" + QFileInfo(QApplication::applicationFilePath()).fileName();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue