diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-01-25 14:54:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-01-25 17:20:55 +0100 |
commit | 46e525c36e62c7cb365f1a1f34373e726cfb49b7 (patch) | |
tree | ea1b3c4a1cabd32746be897848487cd04a8927ce | |
parent | 05eb593379e29d5a1693ed61a7324dab59222a92 (diff) |
tdf#139486 also listen to the Entry to determine if the SpinButton was changed
the Window::FocusOut handler the browser installs is called before the
Control::FocusOut handler, built-into vcl::Control, is called and
the Control::FocusOut handler is the one that calls the (speculative)
ValueChanged so the browser determines that the SpinButton is unchanged
at the time of focus out. If we additionally listen to Changed at the
Entry level we will correctly know that widget is modified in some way
at the Window::FocusOut time.
Change-Id: I540d917fc7375fa61662aa69397bcbaa04a91f26
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109912
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | extensions/source/propctrlr/standardcontrol.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/source/propctrlr/standardcontrol.hxx b/extensions/source/propctrlr/standardcontrol.hxx index ead1f26bfb6e..0ed0fc635093 100644 --- a/extensions/source/propctrlr/standardcontrol.hxx +++ b/extensions/source/propctrlr/standardcontrol.hxx @@ -218,7 +218,9 @@ namespace pcr virtual void SetModifyHandler() override { ONumericControl_Base::SetModifyHandler(); - getTypedControlWindow()->connect_value_changed( LINK( this, CommonBehaviourControlHelper, MetricModifiedHdl ) ); + weld::MetricSpinButton* pSpinButton = getTypedControlWindow(); + pSpinButton->connect_value_changed( LINK( this, CommonBehaviourControlHelper, MetricModifiedHdl ) ); + pSpinButton->get_widget().connect_changed( LINK( this, CommonBehaviourControlHelper, EditModifiedHdl ) ); } private: |