diff options
Diffstat (limited to 'Applications/PixelPaint')
-rw-r--r-- | Applications/PixelPaint/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/PixelPaint/main.cpp b/Applications/PixelPaint/main.cpp index 542ffbd336..3538d5c509 100644 --- a/Applications/PixelPaint/main.cpp +++ b/Applications/PixelPaint/main.cpp @@ -107,7 +107,7 @@ int main(int argc, char** argv) auto bitmap = Gfx::Bitmap::load_from_file(open_path.value()); if (!bitmap) { - GUI::MessageBox::show(String::format("Failed to load '%s'", open_path.value().characters()), "Open failed", GUI::MessageBox::Type::Error, GUI::MessageBox::InputType::OK, window); + GUI::MessageBox::show(window, String::format("Failed to load '%s'", open_path.value().characters()), "Open failed", GUI::MessageBox::Type::Error); return; } })); @@ -133,7 +133,7 @@ int main(int argc, char** argv) if (dialog->exec() == GUI::Dialog::ExecOK) { auto layer = PixelPaint::Layer::create_with_size(dialog->layer_size(), dialog->layer_name()); if (!layer) { - GUI::MessageBox::show_error(String::format("Unable to create layer with size %s", dialog->size().to_string().characters())); + GUI::MessageBox::show_error(window, String::format("Unable to create layer with size %s", dialog->size().to_string().characters())); return; } image_editor.image()->add_layer(layer.release_nonnull()); |