From c56acba75e9fcf6a511e92855f4f4e2221241835 Mon Sep 17 00:00:00 2001 From: Tibor Nagy Date: Mon, 30 Mar 2020 09:03:57 +0200 Subject: [PATCH] SoundPlayer: Set parent window for AboutDialog --- Applications/SoundPlayer/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/SoundPlayer/main.cpp b/Applications/SoundPlayer/main.cpp index 5a4fe56edf..085c7a650e 100644 --- a/Applications/SoundPlayer/main.cpp +++ b/Applications/SoundPlayer/main.cpp @@ -93,8 +93,8 @@ int main(int argc, char** argv) })); auto help_menu = GUI::Menu::construct("Help"); - help_menu->add_action(GUI::Action::create("About", [](auto&) { - GUI::AboutDialog::show("SoundPlayer", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-sound-player.png")); + help_menu->add_action(GUI::Action::create("About", [&](auto&) { + GUI::AboutDialog::show("SoundPlayer", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-sound-player.png"), window); })); menubar->add_menu(move(app_menu));