summaryrefslogtreecommitdiff
path: root/Applications/Piano/main.cpp
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/Piano/main.cpp
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/Piano/main.cpp')
-rw-r--r--Applications/Piano/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Piano/main.cpp b/Applications/Piano/main.cpp
index 0a9782bf37..53ce80d80d 100644
--- a/Applications/Piano/main.cpp
+++ b/Applications/Piano/main.cpp
@@ -96,7 +96,7 @@ int main(int argc, char** argv)
auto& app_menu = menubar->add_menu("Piano");
app_menu.add_action(GUI::Action::create("Export", { Mod_Ctrl, Key_E }, [&](const GUI::Action&) {
- save_path = GUI::FilePicker::get_save_filepath("Untitled", "wav");
+ save_path = GUI::FilePicker::get_save_filepath(window, "Untitled", "wav");
if (!save_path.has_value())
return;
wav_writer.set_file(save_path.value());