diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2016-11-06 20:46:04 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2016-11-06 21:36:25 +0200 |
commit | 5bd6b61a7cad81d8385e5bc4ea0e6546b1eb7314 (patch) | |
tree | b8c810b55d4fefffd73fa56c4381430e7d22bf0d /svtools | |
parent | afe235a0abf9ef91a353a4d0dccf56961abd2fbf (diff) |
NewMenuController: Remove duplicate async dispatch handling
Change-Id: I881e6781c5ba82b0b998891532f8b7c281567b73
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/uno/popupmenucontrollerbase.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/svtools/source/uno/popupmenucontrollerbase.cxx b/svtools/source/uno/popupmenucontrollerbase.cxx index aacc8e988a77..1c0f3431f8f7 100644 --- a/svtools/source/uno/popupmenucontrollerbase.cxx +++ b/svtools/source/uno/popupmenucontrollerbase.cxx @@ -124,7 +124,9 @@ void SAL_CALL PopupMenuControllerBase::itemSelected( const awt::MenuEvent& rEven } } -void PopupMenuControllerBase::dispatchCommand( const OUString& sCommandURL, const css::uno::Sequence< css::beans::PropertyValue >& rArgs ) +void PopupMenuControllerBase::dispatchCommand( const OUString& sCommandURL, + const css::uno::Sequence< css::beans::PropertyValue >& rArgs, + const OUString& sTarget ) { osl::MutexGuard aLock( m_aMutex ); @@ -137,7 +139,7 @@ void PopupMenuControllerBase::dispatchCommand( const OUString& sCommandURL, cons aURL.Complete = sCommandURL; m_xURLTransformer->parseStrict( aURL ); - Reference< XDispatch > xDispatch( xDispatchProvider->queryDispatch( aURL, OUString(), 0 ), UNO_QUERY_THROW ); + Reference< XDispatch > xDispatch( xDispatchProvider->queryDispatch( aURL, sTarget, 0 ), UNO_QUERY_THROW ); Application::PostUserEvent( LINK(nullptr, PopupMenuControllerBase, ExecuteHdl_Impl), new PopupMenuControllerBaseDispatchInfo( xDispatch, aURL, rArgs ) ); |