summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-25 14:54:53 +0000
committerMichael Stahl <michael.stahl@allotropia.de>2021-01-26 10:50:15 +0100
commitd3e8ce1aef43cb5910429791fb00b3be7667f99e (patch)
tree585228e496e3f1a4d0546a34944b02d2e1483318
parent88ecd33f7b5a8f5ea876aef3281a086c753cae7e (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/+/109881 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r--extensions/source/propctrlr/standardcontrol.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/source/propctrlr/standardcontrol.hxx b/extensions/source/propctrlr/standardcontrol.hxx
index 1b4fd2fd08dc..c20e68fe71d8 100644
--- a/extensions/source/propctrlr/standardcontrol.hxx
+++ b/extensions/source/propctrlr/standardcontrol.hxx
@@ -211,7 +211,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: