From 8f860f0fd1e85f2971ea8e69dd7962372dd887f9 Mon Sep 17 00:00:00 2001 From: Bryce Denney Date: Fri, 13 Sep 2002 17:43:57 +0000 Subject: [PATCH] - use wxConfigBase::Get() instead of wxConfig::Get() because in some cases the wxConfig::Get is not defined. --- bochs/gui/wxdialog.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bochs/gui/wxdialog.cc b/bochs/gui/wxdialog.cc index 590e8f4f8..7d57a8a98 100644 --- a/bochs/gui/wxdialog.cc +++ b/bochs/gui/wxdialog.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////// -// $Id: wxdialog.cc,v 1.30 2002-09-06 16:43:23 bdenney Exp $ +// $Id: wxdialog.cc,v 1.31 2002-09-13 17:43:57 bdenney Exp $ ///////////////////////////////////////////////////////////////// // // misc/wxdialog.cc @@ -16,6 +16,7 @@ #endif #include #include +#include #include "config.h" // definitions based on configure script #include "osdep.h" // workarounds for missing stuff @@ -1794,7 +1795,7 @@ int GetTextCtrlInt (wxTextCtrl *ctrl, bool BrowseTextCtrl (wxTextCtrl *text, wxString prompt, long style) { // try to configure the dialog to show hidden files - wxConfig::Get() -> Write(wxT("/wxWindows/wxFileDialog/ShowHidden"), true); + wxConfigBase::Get() -> Write(wxT("/wxWindows/wxFileDialog/ShowHidden"), true); wxFileDialog *fdialog = new wxFileDialog (text->GetParent (), prompt, "", text->GetValue (), wxString(), style); if (fdialog->ShowModal () == wxID_OK) text->SetValue (fdialog->GetPath ());