From 0a5de9195775f6b5a17162e3107144d84f3f783d Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Fri, 10 May 2013 20:58:59 +0100 Subject: [PATCH] Fixed current edits not being saved on exit of the metadata editor. --- src/gui/editor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/editor.cpp b/src/gui/editor.cpp index 1e606669..9c5e2d02 100644 --- a/src/gui/editor.cpp +++ b/src/gui/editor.cpp @@ -621,6 +621,12 @@ void Editor::OnRowSelect(wxListEvent& event) { void Editor::OnQuit(wxCommandEvent& event) { if (event.GetId() == BUTTON_Apply) { + + //Apply any current edits. + wxString currentPlugin = pluginText->GetLabelText(); + if (!currentPlugin.empty()) + ApplyEdits(currentPlugin); + //Save edits to userlist. YAML::Emitter yout; yout.SetIndent(2);