Changed: Abort if operation failed

--HG--
branch : develop
This commit is contained in:
kervala 2016-10-11 18:02:20 +02:00
parent 27550081da
commit 0087f4aec9

View file

@ -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);