From 99a4bd65a0de15c0971ed84dd6d73caa7f1ba1a0 Mon Sep 17 00:00:00 2001 From: NissimHadar Date: Wed, 4 Apr 2018 17:12:46 -0700 Subject: [PATCH] Corrected message to user. Changed ::ReadWrite to ::WriteOnly when creating MD file. --- tools/auto-tester/src/Test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/auto-tester/src/Test.cpp b/tools/auto-tester/src/Test.cpp index 0bbd35e280..e900ecbeae 100644 --- a/tools/auto-tester/src/Test.cpp +++ b/tools/auto-tester/src/Test.cpp @@ -554,7 +554,7 @@ ExtractedText Test::getTestScriptLines(QString testFileName) { // The folder selected must contain a script named "test.js", the file produced is named "test.md" void Test::createMDFile() { // Folder selection - QString testDirectory = QFileDialog::getExistingDirectory(nullptr, "Please select folder containing the test images", ".", QFileDialog::ShowDirsOnly); + QString testDirectory = QFileDialog::getExistingDirectory(nullptr, "Please select folder containing the test", ".", QFileDialog::ShowDirsOnly); if (testDirectory == "") { return; } @@ -571,7 +571,7 @@ void Test::createMDFile() { QString mdFilename(testDirectory + "/" + "test.md"); QFile mdFile(mdFilename); - if (!mdFile.open(QIODevice::ReadWrite)) { + if (!mdFile.open(QIODevice::WriteOnly)) { messageBox.critical(0, "Internal error: " + QString(__FILE__) + ":" + QString::number(__LINE__), "Failed to create file " + mdFilename); exit(-1); }