disabled DeleteAll()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -202,6 +202,9 @@ void MyFrame::OnAbout(wxCommandEvent&)
|
|||||||
|
|
||||||
void MyFrame::OnDelete(wxCommandEvent&)
|
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() ) {
|
if ( wxConfigBase::Get()->DeleteAll() ) {
|
||||||
wxLogMessage("Config file/registry key successfully deleted.");
|
wxLogMessage("Config file/registry key successfully deleted.");
|
||||||
|
|
||||||
@@ -209,6 +212,7 @@ void MyFrame::OnDelete(wxCommandEvent&)
|
|||||||
wxConfigBase::DontCreateOnDemand();
|
wxConfigBase::DontCreateOnDemand();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif // 0
|
||||||
wxLogError("Deleting config file/registry key failed.");
|
wxLogError("Deleting config file/registry key failed.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user