From f0acf4f745e65798fc4bd82acaf40bb756937cda Mon Sep 17 00:00:00 2001 From: YuSanka Date: Wed, 15 May 2019 10:41:14 +0200 Subject: [PATCH] Fixed a manually editing of a "Filament Settings -> Advanced -> Filament type" (#2232) --- src/slic3r/GUI/Field.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Field.cpp b/src/slic3r/GUI/Field.cpp index 9443f3658..e3a9bb2c7 100644 --- a/src/slic3r/GUI/Field.cpp +++ b/src/slic3r/GUI/Field.cpp @@ -608,7 +608,11 @@ void Choice::BUILD() { if (m_is_editable) { temp->Bind(wxEVT_KILL_FOCUS, ([this](wxEvent& e) { e.Skip(); - if (m_opt.type == coStrings) return; + if (m_opt.type == coStrings) { + on_change_field(); + return; + } + double old_val = !m_value.empty() ? boost::any_cast(m_value) : -99999; if (is_defined_input_value(window, m_opt.type)) { if (fabs(old_val - boost::any_cast(get_value())) <= 0.0001)