From b7da212f28ac52b00c9cef1cc3d79ea6440d5f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Tue, 18 Feb 2025 21:47:57 +0100 Subject: [PATCH] Lint. --- cockatrice/src/client/ui/window_main.cpp | 35 ++++++++++++------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/cockatrice/src/client/ui/window_main.cpp b/cockatrice/src/client/ui/window_main.cpp index a184a6149..9e5129bf1 100644 --- a/cockatrice/src/client/ui/window_main.cpp +++ b/cockatrice/src/client/ui/window_main.cpp @@ -1215,30 +1215,29 @@ void MainWindow::cardUpdateError(QProcess::ProcessError err) case QProcess::FailedToStart: error = tr("Failed to start. The file might be missing, or permissions might be incorrect."); break; - case QProcess::Crashed: + case QProcess::Crashed: error = tr("The process crashed some time after starting successfully."); error += "\n\nError output:\n" + cardUpdateProcess->readAllStandardError(); break; - case QProcess::Timedout: - error = - tr("Timed out. The process took too long to respond. The last waitFor...() function timed out."); - break; - case QProcess::WriteError: - error = tr("An error occurred when attempting to write to the process. For example, the process may " - "not be running, or it may have closed its input channel."); - break; - case QProcess::ReadError: - error = tr("An error occurred when attempting to read from the process. For example, the process may " - "not be running."); - break; - case QProcess::UnknownError: - default: - error = tr("Unknown error occurred."); - break; + case QProcess::Timedout: + error = tr("Timed out. The process took too long to respond. The last waitFor...() function timed out."); + break; + case QProcess::WriteError: + error = tr("An error occurred when attempting to write to the process. For example, the process may " + "not be running, or it may have closed its input channel."); + break; + case QProcess::ReadError: + error = tr("An error occurred when attempting to read from the process. For example, the process may " + "not be running."); + break; + case QProcess::UnknownError: + default: + error = tr("Unknown error occurred."); + break; } exitCardDatabaseUpdate(); - QMessageBox::warning(this, tr("Error"), tr("The card database updater exited with an error:\n%1").arg(error)); + QMessageBox::warning(this, tr("Error"), tr("The card database updater exited with an error:\n%1").arg(error)); } void MainWindow::cardUpdateFinished(int, QProcess::ExitStatus)