summaryrefslogtreecommitdiff
path: root/sw/source/ui/fldui/DropDownFieldDialog.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-12-06 11:00:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-12-06 15:09:50 +0100
commit67806532c397d7fc7ea93224a020f1f734c04077 (patch)
treebf20a9db75aa82164abfe24aa48cecde3e7394eb /sw/source/ui/fldui/DropDownFieldDialog.cxx
parentcead2273b0d07e32b4e6fc7a2f11a0dd216847dc (diff)
Resolves: tdf#114144 let double click advance to next if 'next' exists
Change-Id: Id05ad8b72e0ec4f9bad2a9cfb780a44a27618d37 Reviewed-on: https://gerrit.libreoffice.org/64700 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/fldui/DropDownFieldDialog.cxx')
-rw-r--r--sw/source/ui/fldui/DropDownFieldDialog.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/ui/fldui/DropDownFieldDialog.cxx b/sw/source/ui/fldui/DropDownFieldDialog.cxx
index 7bec262b6338..5ccead9f8504 100644
--- a/sw/source/ui/fldui/DropDownFieldDialog.cxx
+++ b/sw/source/ui/fldui/DropDownFieldDialog.cxx
@@ -134,6 +134,9 @@ IMPL_LINK_NOARG(sw::DropDownFieldDialog, NextHdl, weld::Button&, void)
IMPL_LINK_NOARG(sw::DropDownFieldDialog, DoubleClickHdl, weld::TreeView&, void)
{
+ // tdf#114144, when next is available make double-click accept and go to next field
+ if (m_xNextPB->get_visible() && m_xNextPB->get_sensitive())
+ m_pPressedButton = m_xNextPB.get();
m_xDialog->response(RET_OK);
}