Skip to content

Commit c56acba

Browse files
xTiborawesomekling
authored andcommitted
SoundPlayer: Set parent window for AboutDialog
1 parent cfd1e78 commit c56acba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Applications/SoundPlayer/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ int main(int argc, char** argv)
9393
}));
9494

9595
auto help_menu = GUI::Menu::construct("Help");
96-
help_menu->add_action(GUI::Action::create("About", [](auto&) {
97-
GUI::AboutDialog::show("SoundPlayer", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-sound-player.png"));
96+
help_menu->add_action(GUI::Action::create("About", [&](auto&) {
97+
GUI::AboutDialog::show("SoundPlayer", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-sound-player.png"), window);
9898
}));
9999

100100
menubar->add_menu(move(app_menu));

0 commit comments

Comments
 (0)