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