diff --git a/Applications/SoundPlayer/main.cpp b/Applications/SoundPlayer/main.cpp index 5a4fe56edf4..085c7a650e6 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));