added version saving to wxrcedit

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-05-06 22:21:43 +00:00
parent 1ce70313be
commit ccb220600d

View File

@ -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