mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-26 09:06:19 +00:00
Merge with develop
This commit is contained in:
parent
f2907587c4
commit
33e1dedbf1
1 changed files with 5 additions and 12 deletions
|
@ -725,23 +725,18 @@ void COperationDialog::copyInstaller()
|
|||
|
||||
m_currentOperation = tr("Copying installer to new location...");
|
||||
|
||||
QString destinationDirectory = config->getInstallationDirectory();
|
||||
|
||||
// rename old client to installer
|
||||
|
||||
QString oldInstallerFullPath = config->getInstallerCurrentFilePath();
|
||||
QString newInstallerFullPath = config->getInstallerInstalledFilePath();
|
||||
|
||||
if (!newInstallerFullPath.isEmpty())
|
||||
{
|
||||
QString srcDir = config->getSrcServerDirectory();
|
||||
|
||||
if (srcDir.isEmpty()) srcDir = config->getInstallerCurrentDirPath();
|
||||
QString destinationDirectory = config->getInstallationDirectory();
|
||||
QString oldInstallerFullPath = config->getInstallerCurrentFilePath();
|
||||
QString srcDir = config->getInstallerCurrentDirPath();
|
||||
|
||||
// always copy new installers
|
||||
CFilesCopier copier(this);
|
||||
copier.setIncludeFilter(config->getInstallerRequiredFiles());
|
||||
#ifdef Q_OS_WIN32
|
||||
#ifndef Q_OS_MAC
|
||||
copier.addFile(oldInstallerFullPath);
|
||||
#endif
|
||||
copier.setSourceDirectory(srcDir);
|
||||
|
@ -749,9 +744,7 @@ void COperationDialog::copyInstaller()
|
|||
|
||||
if (!copier.exec()) return;
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
// only happens under Windows in Debug or when migrating
|
||||
|
||||
#ifndef Q_OS_MAC
|
||||
// copied file
|
||||
oldInstallerFullPath = config->getInstallationDirectory() + "/" + QFileInfo(oldInstallerFullPath).fileName();
|
||||
|
||||
|
|
Loading…
Reference in a new issue