From faaa88e7abcb48c0564d39f1a69bb3d19df0fe16 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 20 Jul 2008 22:48:34 +0000 Subject: [PATCH 1/1] 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 --- src/gtk/filepicker.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gtk/filepicker.cpp b/src/gtk/filepicker.cpp index fffa3b0da9..9e099cc444 100644 --- a/src/gtk/filepicker.cpp +++ b/src/gtk/filepicker.cpp @@ -257,8 +257,14 @@ wxDirButton::~wxDirButton() 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; // wxDirButton uses the "current-folder-changed" signal which is triggered also -- 2.45.2