mirror of https://github.com/KLayout/klayout.git
User feedback: upon entering an invalid value string into an edit box, do not reset the field
This commit is contained in:
parent
5226d69706
commit
ee9bdd8826
|
|
@ -713,9 +713,11 @@ PCellParametersPage::do_parameter_changed ()
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
db::ParameterStates states = m_states;
|
db::ParameterStates states = m_states;
|
||||||
get_parameters (states, &ok); // includes coerce
|
get_parameters (states, &ok); // includes coerce
|
||||||
update_widgets_from_states (states);
|
if (ok) {
|
||||||
if (ok && ! lazy_evaluation ()) {
|
update_widgets_from_states (states);
|
||||||
emit edited ();
|
if (! lazy_evaluation ()) {
|
||||||
|
emit edited ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue