diff options
author | YuSanka <yusanka@gmail.com> | 2018-09-05 13:02:34 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2018-09-05 13:02:34 +0300 |
commit | e2830dc33736dc5afede0ea073a9e7671205fed3 (patch) | |
tree | 8232e149dd412b7f41460627cd44de8a079b5950 /xs/src/slic3r | |
parent | f67060f0129cbe897e6a144b8181146c35ace174 (diff) |
Fix to last commit
Diffstat (limited to 'xs/src/slic3r')
-rw-r--r-- | xs/src/slic3r/GUI/Field.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/xs/src/slic3r/GUI/Field.cpp b/xs/src/slic3r/GUI/Field.cpp index 44cdb33f5..228d320da 100644 --- a/xs/src/slic3r/GUI/Field.cpp +++ b/xs/src/slic3r/GUI/Field.cpp @@ -224,10 +224,13 @@ namespace Slic3r { namespace GUI { }), temp->GetId()); #endif // __WXGTK__ - temp->Bind(wxEVT_TEXT, ([this](wxCommandEvent) + temp->Bind(wxEVT_TEXT, ([this](wxCommandEvent& evt) { #ifdef __WXGTK__ - bChangedValueEvent = true; + if (bChangedValueEvent) + change_field_value(ent); + else + bChangedValueEvent = true; #else on_change_field(); #endif //__WXGTK__ @@ -266,7 +269,9 @@ namespace Slic3r { namespace GUI { #ifdef __WXGTK__ void TextCtrl::change_field_value(wxEvent& event) { - if (bChangedValueEvent) { + if (event.GetEventType() == wxEVT_TEXT_PASTE) + bChangedValueEvent = true; + else if (bChangedValueEvent) { on_change_field(); bChangedValueEvent = false; } |