summaryrefslogtreecommitdiff
path: root/DevTools/HackStudio
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 /DevTools/HackStudio
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 'DevTools/HackStudio')
-rw-r--r--DevTools/HackStudio/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/DevTools/HackStudio/main.cpp b/DevTools/HackStudio/main.cpp
index 5ed3f1717d..a5ad71be9a 100644
--- a/DevTools/HackStudio/main.cpp
+++ b/DevTools/HackStudio/main.cpp
@@ -222,7 +222,7 @@ int main(int argc, char** argv)
});
auto add_existing_file_action = GUI::Action::create("Add existing file to project...", Gfx::Bitmap::load_from_file("/res/icons/16x16/open.png"), [&](auto&) {
- auto result = GUI::FilePicker::get_open_filepath("Add existing file to project");
+ auto result = GUI::FilePicker::get_open_filepath(g_window, "Add existing file to project");
if (!result.has_value())
return;
auto& filename = result.value();
@@ -425,7 +425,7 @@ int main(int argc, char** argv)
});
auto open_action = GUI::Action::create("Open project...", { Mod_Ctrl | Mod_Shift, Key_O }, Gfx::Bitmap::load_from_file("/res/icons/16x16/open.png"), [&](auto&) {
- auto open_path = GUI::FilePicker::get_open_filepath("Open project");
+ auto open_path = GUI::FilePicker::get_open_filepath(g_window, "Open project");
if (!open_path.has_value())
return;
open_project(open_path.value());