diff options
Diffstat (limited to 'DevTools/VisualBuilder/VBForm.cpp')
-rw-r--r-- | DevTools/VisualBuilder/VBForm.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/DevTools/VisualBuilder/VBForm.cpp b/DevTools/VisualBuilder/VBForm.cpp index bb095d6ca0..6cec82cbbc 100644 --- a/DevTools/VisualBuilder/VBForm.cpp +++ b/DevTools/VisualBuilder/VBForm.cpp @@ -294,7 +294,7 @@ void VBForm::load_from_file(const String& path) { CFile file(path); if (!file.open(CIODevice::ReadOnly)) { - GMessageBox::show(String::format("Could not open '%s' for reading", path.characters()), "Error", GMessageBox::Type::Error, window()); + GMessageBox::show(String::format("Could not open '%s' for reading", path.characters()), "Error", GMessageBox::Type::Error, GMessageBox::InputType::OK, window()); return; } @@ -302,7 +302,7 @@ void VBForm::load_from_file(const String& path) auto form_json = JsonValue::from_string(file_contents); if (!form_json.is_object()) { - GMessageBox::show(String::format("Could not parse '%s'", path.characters()), "Error", GMessageBox::Type::Error, window()); + GMessageBox::show(String::format("Could not parse '%s'", path.characters()), "Error", GMessageBox::Type::Error, GMessageBox::InputType::OK, window()); return; } @@ -329,7 +329,7 @@ void VBForm::write_to_file(const String& path) { CFile file(path); if (!file.open(CIODevice::WriteOnly)) { - GMessageBox::show(String::format("Could not open '%s' for writing", path.characters()), "Error", GMessageBox::Type::Error, window()); + GMessageBox::show(String::format("Could not open '%s' for writing", path.characters()), "Error", GMessageBox::Type::Error, GMessageBox::InputType::OK, window()); return; } |