mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-26 18:40:54 +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.setDestinationDirectory(dest);
|
||||
|
||||
if (extractor.exec())
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
if (!extractor.exec()) return;
|
||||
|
||||
emit done();
|
||||
}
|
||||
|
@ -593,12 +588,7 @@ void COperationDialog::extractDownloadedClient()
|
|||
extractor.setSourceFile(config->getInstallationDirectory() + "/" + config->expandVariables(server.clientDownloadFilename));
|
||||
extractor.setDestinationDirectory(destinationDirectory);
|
||||
|
||||
if (extractor.exec())
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
if (!extractor.exec()) return;
|
||||
|
||||
launchUpgradeScript(destinationDirectory, server.clientFilename);
|
||||
|
||||
|
@ -626,12 +616,7 @@ void COperationDialog::copyDataFiles()
|
|||
copier.setDestinationDirectory(server.getDirectory());
|
||||
copier.setIncludeFilter(serverFiles);
|
||||
|
||||
if (copier.exec())
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
if (!copier.exec()) return;
|
||||
|
||||
emit done();
|
||||
}
|
||||
|
@ -661,12 +646,7 @@ void COperationDialog::copyProfileFiles()
|
|||
copier.setDestinationDirectory(profile.getDirectory());
|
||||
copier.setIncludeFilter(profileFiles);
|
||||
|
||||
if (copier.exec())
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
if (!copier.exec()) return;
|
||||
|
||||
// correct path to client_default.cfg
|
||||
profile.createClientConfig();
|
||||
|
@ -688,7 +668,8 @@ void COperationDialog::extractBnpClient()
|
|||
CFilesExtractor extractor(this);
|
||||
extractor.setSourceFile(config->getSrcServerClientBNPFullPath());
|
||||
extractor.setDestinationDirectory(destinationDirectory);
|
||||
extractor.exec();
|
||||
|
||||
if (!extractor.exec()) return;
|
||||
|
||||
launchUpgradeScript(destinationDirectory, server.clientFilename);
|
||||
|
||||
|
|
Loading…
Reference in a new issue