From 6e35867123adb83b7f23ea41a9120297c5faa1ab Mon Sep 17 00:00:00 2001 From: NissimHadar Date: Mon, 10 Dec 2018 13:00:38 -0800 Subject: [PATCH] Updated message box. --- tools/nitpick/src/Test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/nitpick/src/Test.cpp b/tools/nitpick/src/Test.cpp index b1254a3c04..477ced068c 100644 --- a/tools/nitpick/src/Test.cpp +++ b/tools/nitpick/src/Test.cpp @@ -215,17 +215,17 @@ void Test::appendTestResultsToFile(TestResult testResult, QPixmap comparisonImag } void::Test::appendTestResultsToFile(QString testResultFilename, bool hasFailed) { - QString resultFolderPath; + QString resultFolderPath { _testResultsFolderPath }; if (hasFailed) { - resultFolderPath = _testResultsFolderPath + "/Failure_"; + resultFolderPath += "/Failure_"; ++_failureIndex; } else { - resultFolderPath = _testResultsFolderPath + "/Success_"; + resultFolderPath += "/Success_"; ++_successIndex; } if (!QFile::copy(testResultFilename, resultFolderPath)) { -//// QMessageBox::critical(0, "Internal error: " + QString(__FILE__) + ":" + QString::number(__LINE__), "Failed to copy " + sourceFile + " to " + destinationFile); + QMessageBox::critical(0, "Internal error: " + QString(__FILE__) + ":" + QString::number(__LINE__), "Failed to copy " + testResultFilename + " to " + resultFolderPath); exit(-1); } }