summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-11-18 10:48:24 +0000
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2020-11-19 02:21:01 +0100
commitacddc14fef3f3d34c9f2218545364ff37815b507 (patch)
tree05e5c1aca82ac752e03ddb47eea0ee65083a215c /extensions
parent2b433a52c164558b85ec85b6b8ccf6b11776695c (diff)
Resolves: tdf#138271 flag formatted spinbuttons as modified on any entry change
formattedspinbuttons should send value-changed on losing focus, but this is sufficient for this use case and safe to backport Change-Id: Ie0cf5ab22152d95169dc5579423a4173be678a33 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105999 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/usercontrol.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/source/propctrlr/usercontrol.hxx b/extensions/source/propctrlr/usercontrol.hxx
index 93969d2afb21..b72fcbd8048d 100644
--- a/extensions/source/propctrlr/usercontrol.hxx
+++ b/extensions/source/propctrlr/usercontrol.hxx
@@ -58,6 +58,7 @@ namespace pcr
m_xEntry->connect_focus_in( LINK( this, CommonBehaviourControlHelper, GetFocusHdl ) );
m_xEntry->connect_focus_out( LINK( this, CommonBehaviourControlHelper, LoseFocusHdl ) );
m_xSpinButton->connect_value_changed(LINK(this, CommonBehaviourControlHelper, FormattedModifiedHdl));
+ m_xSpinButton->connect_changed(LINK(this, CommonBehaviourControlHelper, EditModifiedHdl));
}
void SetFormatSupplier(const SvNumberFormatsSupplierObj* pSupplier);
@@ -105,6 +106,7 @@ namespace pcr
{
OFormattedNumericControl_Base::SetModifyHandler();
getTypedControlWindow()->connect_value_changed(LINK(this, CommonBehaviourControlHelper, FormattedModifiedHdl));
+ getTypedControlWindow()->connect_changed(LINK(this, CommonBehaviourControlHelper, EditModifiedHdl));
}
virtual weld::Widget* getWidget() override { return getTypedControlWindow(); }