SoundPlayer: Set parent window for AboutDialog

This commit is contained in:
Tibor Nagy 2020-03-30 09:03:57 +02:00 committed by Andreas Kling
parent cfd1e783a5
commit c56acba75e
Notes: sideshowbarker 2024-07-19 08:03:46 +09:00

View file

@ -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));