From 6568765e8f89563fa76407ce5e369ec1eb09c125 Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 15 Jul 2020 19:52:02 -0600 Subject: LibGUI: Add parent window argument to FilePicker functions Since FilePicker almost always should be modal, add the parent window as mandatory first argument. --- Applications/HexEditor/HexEditorWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Applications/HexEditor') diff --git a/Applications/HexEditor/HexEditorWidget.cpp b/Applications/HexEditor/HexEditorWidget.cpp index eabb7cea67..922ec6481c 100644 --- a/Applications/HexEditor/HexEditorWidget.cpp +++ b/Applications/HexEditor/HexEditorWidget.cpp @@ -95,7 +95,7 @@ HexEditorWidget::HexEditorWidget() }); m_open_action = GUI::CommonActions::make_open_action([this](auto&) { - Optional open_path = GUI::FilePicker::get_open_filepath(); + Optional open_path = GUI::FilePicker::get_open_filepath(window()); if (!open_path.has_value()) return; @@ -118,7 +118,7 @@ HexEditorWidget::HexEditorWidget() }); m_save_as_action = GUI::Action::create("Save as...", { Mod_Ctrl | Mod_Shift, Key_S }, Gfx::Bitmap::load_from_file("/res/icons/16x16/save.png"), [this](const GUI::Action&) { - Optional save_path = GUI::FilePicker::get_save_filepath(m_name.is_null() ? "Untitled" : m_name, m_extension.is_null() ? "bin" : m_extension); + Optional save_path = GUI::FilePicker::get_save_filepath(window(), m_name.is_null() ? "Untitled" : m_name, m_extension.is_null() ? "bin" : m_extension); if (!save_path.has_value()) return; -- cgit v1.2.3