summaryrefslogtreecommitdiffstats
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-01-09 16:13:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-01-10 10:21:15 +0100
commit10f0c50c86db4e7b9130130e61412497a0e4848b (patch)
treeb6332bca0639d396d8988459e83c2d5681a30952 /cui
parentResolves: tdf#122598 avoid crash on macro recording end (diff)
downloadcore-10f0c50c86db4e7b9130130e61412497a0e4848b.tar.gz
core-10f0c50c86db4e7b9130130e61412497a0e4848b.zip
Resolves: tdf#122356 on row-activate click ok button
instead of proceeding directy to the ok response. Because there is an additional handler installed in the okbutton to do extra stuff that is needed to make this work Change-Id: I9646ea6978533084c6c9c48b03806e46eaa49c33 Reviewed-on: https://gerrit.libreoffice.org/66046 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/numfmt.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx
index 2e09793e0c51..8214ac4f6874 100644
--- a/cui/source/tabpages/numfmt.cxx
+++ b/cui/source/tabpages/numfmt.cxx
@@ -1139,7 +1139,10 @@ IMPL_LINK(SvxNumberFormatTabPage, DoubleClickHdl_Impl, weld::TreeView&, rLb, voi
SelFormatHdl_Impl(&rLb);
if (SfxTabDialogController* pController = GetDialogController())
- pController->getDialog()->response(RET_OK);
+ {
+ weld::Button& rOkButton = pController->GetOKButton();
+ rOkButton.clicked();
+ }
else
{
SfxSingleTabDialog* pParent = dynamic_cast<SfxSingleTabDialog*>(GetParentDialog());