mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-25 02:10:53 +00:00
Changed: Abort if operation failed
This commit is contained in:
parent
7c67e7e336
commit
56acc45412
1 changed files with 6 additions and 25 deletions
|
@ -558,12 +558,7 @@ void COperationDialog::extractDownloadedData()
|
||||||
extractor.setSourceFile(config->getInstallationDirectory() + "/" + server.dataDownloadFilename);
|
extractor.setSourceFile(config->getInstallationDirectory() + "/" + server.dataDownloadFilename);
|
||||||
extractor.setDestinationDirectory(dest);
|
extractor.setDestinationDirectory(dest);
|
||||||
|
|
||||||
if (extractor.exec())
|
if (!extractor.exec()) return;
|
||||||
{
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
emit done();
|
emit done();
|
||||||
}
|
}
|
||||||
|
@ -593,12 +588,7 @@ void COperationDialog::extractDownloadedClient()
|
||||||
extractor.setSourceFile(config->getInstallationDirectory() + "/" + config->expandVariables(server.clientDownloadFilename));
|
extractor.setSourceFile(config->getInstallationDirectory() + "/" + config->expandVariables(server.clientDownloadFilename));
|
||||||
extractor.setDestinationDirectory(destinationDirectory);
|
extractor.setDestinationDirectory(destinationDirectory);
|
||||||
|
|
||||||
if (extractor.exec())
|
if (!extractor.exec()) return;
|
||||||
{
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
launchUpgradeScript(destinationDirectory, server.clientFilename);
|
launchUpgradeScript(destinationDirectory, server.clientFilename);
|
||||||
|
|
||||||
|
@ -626,12 +616,7 @@ void COperationDialog::copyDataFiles()
|
||||||
copier.setDestinationDirectory(server.getDirectory());
|
copier.setDestinationDirectory(server.getDirectory());
|
||||||
copier.setIncludeFilter(serverFiles);
|
copier.setIncludeFilter(serverFiles);
|
||||||
|
|
||||||
if (copier.exec())
|
if (!copier.exec()) return;
|
||||||
{
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
emit done();
|
emit done();
|
||||||
}
|
}
|
||||||
|
@ -661,12 +646,7 @@ void COperationDialog::copyProfileFiles()
|
||||||
copier.setDestinationDirectory(profile.getDirectory());
|
copier.setDestinationDirectory(profile.getDirectory());
|
||||||
copier.setIncludeFilter(profileFiles);
|
copier.setIncludeFilter(profileFiles);
|
||||||
|
|
||||||
if (copier.exec())
|
if (!copier.exec()) return;
|
||||||
{
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
// correct path to client_default.cfg
|
// correct path to client_default.cfg
|
||||||
profile.createClientConfig();
|
profile.createClientConfig();
|
||||||
|
@ -688,7 +668,8 @@ void COperationDialog::extractBnpClient()
|
||||||
CFilesExtractor extractor(this);
|
CFilesExtractor extractor(this);
|
||||||
extractor.setSourceFile(config->getSrcServerClientBNPFullPath());
|
extractor.setSourceFile(config->getSrcServerClientBNPFullPath());
|
||||||
extractor.setDestinationDirectory(destinationDirectory);
|
extractor.setDestinationDirectory(destinationDirectory);
|
||||||
extractor.exec();
|
|
||||||
|
if (!extractor.exec()) return;
|
||||||
|
|
||||||
launchUpgradeScript(destinationDirectory, server.clientFilename);
|
launchUpgradeScript(destinationDirectory, server.clientFilename);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue