Remove workarounds for wxTextCtrl::SetValue() events in pickers code.
Simply use ChangeValue() instead of SetValue() to avoid the unwanted events instead of using guard variables. No real changes but the code is simpler and shorter now. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -148,7 +148,7 @@ protected:
|
||||
class WXDLLIMPEXP_CORE wxFileDirPickerCtrlBase : public wxPickerBase
|
||||
{
|
||||
public:
|
||||
wxFileDirPickerCtrlBase() : m_bIgnoreNextTextCtrlUpdate(false) {}
|
||||
wxFileDirPickerCtrlBase() {}
|
||||
|
||||
protected:
|
||||
// NB: no default values since this function will never be used
|
||||
@@ -209,9 +209,6 @@ protected:
|
||||
|
||||
protected:
|
||||
|
||||
// true if the next UpdateTextCtrl() call is to ignore
|
||||
bool m_bIgnoreNextTextCtrlUpdate;
|
||||
|
||||
// m_picker object as wxFileDirPickerWidgetBase interface
|
||||
wxFileDirPickerWidgetBase *m_pickerIface;
|
||||
};
|
||||
|
Reference in New Issue
Block a user