summaryrefslogtreecommitdiff
path: root/Applications/FontEditor
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2020-07-15 19:52:02 -0600
committerAndreas Kling <kling@serenityos.org>2020-07-16 16:10:21 +0200
commit6568765e8f89563fa76407ce5e369ec1eb09c125 (patch)
treeab185f89d668de23ed608a8b11ae5491df3b4d16 /Applications/FontEditor
parent98440889641fcd7d049921146984ca5ec3b957b3 (diff)
downloadserenity-6568765e8f89563fa76407ce5e369ec1eb09c125.zip
LibGUI: Add parent window argument to FilePicker functions
Since FilePicker almost always should be modal, add the parent window as mandatory first argument.
Diffstat (limited to 'Applications/FontEditor')
-rw-r--r--Applications/FontEditor/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/FontEditor/main.cpp b/Applications/FontEditor/main.cpp
index 7f8aa9ac3e..b764050c43 100644
--- a/Applications/FontEditor/main.cpp
+++ b/Applications/FontEditor/main.cpp
@@ -92,7 +92,7 @@ int main(int argc, char** argv)
auto& app_menu = menubar->add_menu("Font Editor");
app_menu.add_action(GUI::CommonActions::make_open_action([&](auto&) {
- Optional<String> open_path = GUI::FilePicker::get_open_filepath();
+ Optional<String> open_path = GUI::FilePicker::get_open_filepath(window);
if (!open_path.has_value())
return;
@@ -112,7 +112,7 @@ int main(int argc, char** argv)
app_menu.add_action(GUI::Action::create("Save as...", { Mod_Ctrl | Mod_Shift, Key_S }, Gfx::Bitmap::load_from_file("/res/icons/16x16/save.png"), [&](auto&) {
FontEditorWidget* editor = static_cast<FontEditorWidget*>(window->main_widget());
LexicalPath lexical_path(editor->path());
- Optional<String> save_path = GUI::FilePicker::get_save_filepath(lexical_path.title(), lexical_path.extension());
+ Optional<String> save_path = GUI::FilePicker::get_save_filepath(window, lexical_path.title(), lexical_path.extension());
if (!save_path.has_value())
return;