|
@@ -245,7 +245,7 @@ MainWidget::MainWidget()
|
|
|
m_editor->on_cursor_change = [this] { update_statusbar(); };
|
|
|
m_editor->on_selection_change = [this] { update_statusbar(); };
|
|
|
|
|
|
- m_new_action = GUI::Action::create("&New", { Mod_Ctrl, Key_N }, Gfx::Bitmap::load_from_file("/res/icons/16x16/new.png"), [this](const GUI::Action&) {
|
|
|
+ m_new_action = GUI::Action::create("&New", { Mod_Ctrl, Key_N }, Gfx::Bitmap::load_from_file("/res/icons/16x16/new.png"), [this](GUI::Action const&) {
|
|
|
if (editor().document().is_modified()) {
|
|
|
auto save_document_first_result = GUI::MessageBox::show(window(), "Save changes to current document first?", "Warning", GUI::MessageBox::Type::Warning, GUI::MessageBox::InputType::YesNoCancel);
|
|
|
if (save_document_first_result == GUI::Dialog::ExecResult::ExecYes)
|