mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 03:53:34 +02:00
Corrected message to user.
Changed ::ReadWrite to ::WriteOnly when creating MD file.
This commit is contained in:
parent
4870ce1d76
commit
99a4bd65a0
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue