Fixed wxConfig (I hope) and disabled wxRegConfig::DeleteAll.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -467,12 +467,16 @@ bool wxRegConfig::DeleteAll()
|
||||
{
|
||||
m_keyLocal.Close();
|
||||
m_keyGlobal.Close();
|
||||
|
||||
#if 1
|
||||
wxFAIL_MSG("wxRegConfig::DeleteAll will wipe out your entire registry, so please do not use until it's fixed!");
|
||||
return FALSE;
|
||||
#else
|
||||
bool bOk = m_keyLocalRoot.DeleteSelf();
|
||||
if ( bOk )
|
||||
bOk = m_keyGlobalRoot.DeleteSelf();
|
||||
|
||||
return bOk;
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user