cui/source/customize/cfg.cxx |    8 ++++++++
 cui/source/inc/cfg.hxx       |    1 +
 2 files changed, 9 insertions(+)

New commits:
commit 1c1c50e12cc33df7c158badfc6b08c2ef9bb38a5
Author: Jim Raykowski <rayk...@gmail.com>
Date:   Wed Jan 24 22:55:14 2018 -0900

    tdf#115129 Add function on double click in Customize Dialog
    
    Change-Id: I21a7f8b4fc05d55d1539a3fd148e5870899b1596
    Reviewed-on: https://gerrit.libreoffice.org/48555
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de>

diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 2d41063947a6..4e194ba4cc05 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -1193,6 +1193,7 @@ SvxConfigPage::SvxConfigPage(vcl::Window *pParent, const 
SfxItemSet& rSet)
     m_pSearchEdit->SetUpdateDataHdl ( LINK( this, SvxConfigPage, 
SearchUpdateHdl ));
     m_pSearchEdit->EnableUpdateData();
 
+    m_pFunctions->SetDoubleClickHdl( LINK( this, SvxConfigPage, 
FunctionDoubleClickHdl ) );
     m_pFunctions->SetSelectHdl(
         LINK( this, SvxConfigPage, SelectFunctionHdl ) );
 }
@@ -1783,6 +1784,13 @@ IMPL_LINK( SvxConfigPage, MoveHdl, Button *, pButton, 
void )
     MoveEntry(pButton == m_pMoveUpButton);
 }
 
+IMPL_LINK_NOARG( SvxConfigPage, FunctionDoubleClickHdl, SvTreeListBox *, bool )
+{
+    if ( m_pAddCommandButton->IsEnabled() )
+        m_pAddCommandButton->Click();
+    return false;
+}
+
 IMPL_LINK_NOARG( SvxConfigPage, SelectFunctionHdl, SvTreeListBox *, void )
 {
     // Store the tooltip of the description field at first run
diff --git a/cui/source/inc/cfg.hxx b/cui/source/inc/cfg.hxx
index b8bf3fcd7020..d69da888059e 100644
--- a/cui/source/inc/cfg.hxx
+++ b/cui/source/inc/cfg.hxx
@@ -418,6 +418,7 @@ protected:
 
     DECL_LINK( MoveHdl, Button *, void );
     DECL_LINK( SelectFunctionHdl, SvTreeListBox *, void );
+    DECL_LINK( FunctionDoubleClickHdl, SvTreeListBox *, bool );
 
     virtual SaveInData* CreateSaveInData(
         const css::uno::Reference< css::ui::XUIConfigurationManager >&,
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to