diff --git a/src/decorated-frame.cpp b/src/decorated-frame.cpp index 956a286791ce46a05b2284fed380257aebec7487..697d387ca74817247952397c4aa5db1988b717b7 100644 --- a/src/decorated-frame.cpp +++ b/src/decorated-frame.cpp @@ -112,6 +112,7 @@ decorated_frame::decorated_frame(app* app) m_statusbar->pane_show("PaneTheme", false); } + wex::art::insert({{ID_EDIT_MACRO, wxART_EDIT}}); wex::art::insert({{ID_EDIT_MACRO_PLAYBACK, wxART_PLAY_CIRCLE}}); menu(); @@ -145,7 +146,8 @@ bool decorated_frame::allow_close(wxWindowID id, wxWindow* page) { return false; } - else if (wex::beautify b; b.is_active() && stc->get_file().is_written()) + else if (wex::beautify b(stc->path()); + b.is_active() && stc->get_file().is_written()) { stc->get_file().close(); b.file(stc->path());