Changed: Abort if operation failed

This commit is contained in:
kervala 2016-10-11 18:02:20 +02:00
parent 04c4a675af
commit 3d3c1d50c3

View file

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