VisualBuilder: Use GCommonActions::make_delete_action()

This commit is contained in:
Andreas Kling 2019-09-14 22:32:56 +02:00
parent b41b5433f4
commit 92b17eab23
Notes: sideshowbarker 2024-07-19 12:06:31 +09:00

View File

@ -35,7 +35,7 @@ VBForm::VBForm(const String& name, GWidget* parent)
if (auto* widget = single_selected_widget())
widget->gwidget()->move_to_back();
}));
m_context_menu->add_action(GAction::create("Delete", [this](auto&) {
m_context_menu->add_action(GCommonActions::make_delete_action([this](auto&) {
delete_selected_widgets();
}));
}