Solitaire: Set parent window for AboutDialog

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

View file

@ -60,7 +60,7 @@ int main(int argc, char** argv)
app_menu->add_action(GUI::CommonActions::make_quit_action([&](auto&) { app.quit(); }));
help_menu->add_action(GUI::Action::create("About", [&](auto&) {
GUI::AboutDialog::show("Solitaire", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-solitaire.png"));
GUI::AboutDialog::show("Solitaire", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-solitaire.png"), window);
}));
menu_bar->add_menu(move(app_menu));