fix generation of events for an initially empty wxDirPickerCtrl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-07-20 22:48:34 +00:00
parent ee437b7e1d
commit faaa88e7ab

View File

@@ -257,8 +257,14 @@ wxDirButton::~wxDirButton()
m_dialog->m_widget = NULL; m_dialog->m_widget = NULL;
} }
void wxDirButton::SetPath(const wxString &str) void wxDirButton::SetPath(const wxString& str)
{ {
if ( m_path == str )
{
// don't do anything and especially don't set m_bIgnoreNextChange
return;
}
m_path = str; m_path = str;
// wxDirButton uses the "current-folder-changed" signal which is triggered also // wxDirButton uses the "current-folder-changed" signal which is triggered also