]> git.saurik.com Git - wxWidgets.git/commitdiff
fix generation of events for an initially empty wxDirPickerCtrl
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Jul 2008 22:48:34 +0000 (22:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Jul 2008 22:48:34 +0000 (22:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/filepicker.cpp

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