TextEditorWidget: Added GCommonActions

This commit is contained in:
rhin123 2019-09-04 16:28:56 -05:00 committed by Andreas Kling
parent c4d59f64d1
commit f468634494
Notes: sideshowbarker 2024-07-19 12:18:03 +09:00

View File

@ -172,7 +172,7 @@ TextEditorWidget::TextEditorWidget()
app_menu->add_action(*m_save_action);
app_menu->add_action(*m_save_as_action);
app_menu->add_separator();
app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [this](const GAction&) {
app_menu->add_action(GCommonActions::make_quit_action([this] {
if (!request_close())
return;
GApplication::the().quit(0);