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:
Julian Smart
1999-01-20 12:23:40 +00:00
parent b953bdc293
commit 898efd1a88
4 changed files with 13 additions and 6 deletions

View File

@@ -204,15 +204,15 @@ void MyFrame::OnDelete(wxCommandEvent&)
{
// VZ: it seems that DeleteAll() wreaks havoc on NT. Disabled until I
// investigate it further, do _not_ compile this code in meanwhile!
#if 0
if ( wxConfigBase::Get()->DeleteAll() ) {
// JACS: wxRegConfig::DeleteAll is disabled, so it's safe to call DeleteAll,
// it just won't do anything useful on Win95/NT.
if ( wxConfigBase::Get()->DeleteAll() ) {
wxLogMessage("Config file/registry key successfully deleted.");
delete wxConfigBase::Set((wxConfigBase *) NULL);
wxConfigBase::DontCreateOnDemand();
}
else
#endif // 0
wxLogError("Deleting config file/registry key failed.");
}