build fix for wxUSE_CONFIG==0

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett 2007-05-05 17:13:30 +00:00
parent 27ee942feb
commit 1a51ca3303

View File

@ -1016,6 +1016,7 @@ bool wxGenericFileDialog::Create( wxWindow *parent,
ignoreChanges = true;
#if wxUSE_CONFIG
if (wxConfig::Get(false))
{
wxConfig::Get()->Read(wxT("/wxWindows/wxFileDialog/ViewStyle"),
@ -1023,6 +1024,7 @@ bool wxGenericFileDialog::Create( wxWindow *parent,
wxConfig::Get()->Read(wxT("/wxWindows/wxFileDialog/ShowHidden"),
&ms_lastShowHidden);
}
#endif
if ((m_dir.empty()) || (m_dir == wxT(".")))
{
@ -1190,6 +1192,7 @@ wxGenericFileDialog::~wxGenericFileDialog()
if (!m_bypassGenericImpl)
{
#if wxUSE_CONFIG
if (wxConfig::Get(false))
{
wxConfig::Get()->Write(wxT("/wxWindows/wxFileDialog/ViewStyle"),
@ -1197,6 +1200,7 @@ wxGenericFileDialog::~wxGenericFileDialog()
wxConfig::Get()->Write(wxT("/wxWindows/wxFileDialog/ShowHidden"),
ms_lastShowHidden);
}
#endif
const int count = m_choice->GetCount();
for ( int i = 0; i < count; i++ )