diff options
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/cfg.cxx | 8 | ||||
-rw-r--r-- | cui/source/inc/cfg.hxx | 1 |
2 files changed, 9 insertions, 0 deletions
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 >&, |