Skip to content

Commit

Permalink
SoundPlayer: Set parent window for AboutDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
xTibor authored and awesomekling committed Mar 30, 2020
1 parent cfd1e78 commit c56acba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Applications/SoundPlayer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit c56acba

Please sign in to comment.