From: Václav Slavík Date: Sun, 6 May 2001 22:21:43 +0000 (+0000) Subject: added version saving to wxrcedit X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ccb220600d4a0cda7ecfc89269532476fe570c3c?ds=inline added version saving to wxrcedit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/contrib/utils/wxrcedit/editor.cpp b/contrib/utils/wxrcedit/editor.cpp index 383462d1c8..bb2e401403 100644 --- a/contrib/utils/wxrcedit/editor.cpp +++ b/contrib/utils/wxrcedit/editor.cpp @@ -254,7 +254,13 @@ void EditorFrame::LoadFile(const wxString& filename) void EditorFrame::SaveFile(const wxString& filename) { m_FileName = filename; - + + // change version: + wxXmlNode *root = m_Resource->GetRoot(); + root->DeleteProperty(wxT("version")); + root->AddProperty(wxT("version"), wxT(WX_XMLRES_CURRENT_VERSION_STRING)); + + // save it: if (!m_Resource->Save(filename)) wxLogError(_("Error saving ") + filename); else