Changed: Use same directory as installer if downloading files

This commit is contained in:
kervala 2016-06-18 19:54:38 +02:00
parent 31525e849c
commit abe9fbfc9d

View file

@ -658,7 +658,7 @@ void COperationDialog::copyInstaller()
CFilesCopier copier(this);
copier.setIncludeFilter(filter);
copier.addFile(oldInstallerFullPath);
copier.setSourceDirectory(config->getSrcServerDirectory());
copier.setSourceDirectory(config->getSrcServerDirectory().isEmpty() ? QApplication::applicationDirPath():config->getSrcServerDirectory());
copier.setDestinationDirectory(config->getInstallationDirectory());
copier.exec();