bool wxFileConfig::RenameGroup(const wxString& oldName, const wxString& newName) { // check that the group exists ConfigGroup *group = m_pCurrentGroup->FindSubgroup(oldName); if ( !group ) return FALSE; // check that the new group doesn't already exist if ( m_pCurrentGroup->FindSubgroup(newName) ) return FALSE; group->Rename(newName); return TRUE; }