fix wxConfig::DeleteGroup() for arguments with trailing slash (replaces patch 1624589)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1172,7 +1172,7 @@ bool wxFileConfig::DeleteEntry(const wxString& key, bool bGroupIfEmptyAlso)
|
||||
|
||||
bool wxFileConfig::DeleteGroup(const wxString& key)
|
||||
{
|
||||
wxConfigPathChanger path(this, key);
|
||||
wxConfigPathChanger path(this, RemoveTrailingSeparator(key));
|
||||
|
||||
if ( !m_pCurrentGroup->DeleteSubgroupByName(path.Name()) )
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user