summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2020-05-15 10:00:21 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2020-05-15 13:03:24 +0200
commit8d4dee8ee96c27454968d19518153ca892194a77 (patch)
tree91fcbe48875da852bc19ecb747dc26d5c2a5fc21
parent8ceba7eba43ba5ac16f15c239578ec9354f450ea (diff)
Forward 'removeTabPageContainerListener' as such
Calling 'addTabPageContainerListener' for the peer instead looks like it was probably a copy paste mistake when adding this forwarding in both, 'UnoControlTabPageContainer::addTabPageContainerListener', and 'UnoControlTabPageContainer::removeTabPageContainerListener' in commit 559f957fc3e4295b049866efe3582b2aaa17c414 ("tabcontrol: notify tab listener", 2010-09-06). Change-Id: I98f20b9cb3e658143b362118189adfbed85f3b43 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94262 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r--toolkit/source/controls/tabpagecontainer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/controls/tabpagecontainer.cxx b/toolkit/source/controls/tabpagecontainer.cxx
index b733ef56064e..25c50c387abe 100644
--- a/toolkit/source/controls/tabpagecontainer.cxx
+++ b/toolkit/source/controls/tabpagecontainer.cxx
@@ -289,7 +289,7 @@ void SAL_CALL UnoControlTabPageContainer::removeTabPageContainerListener( const
if( getPeer().is() && m_aTabPageListeners.getLength() == 1 )
{
uno::Reference < awt::tab::XTabPageContainer > xTabPageContainer( getPeer(), uno::UNO_QUERY );
- xTabPageContainer->addTabPageContainerListener( &m_aTabPageListeners );
+ xTabPageContainer->removeTabPageContainerListener( &m_aTabPageListeners );
}
m_aTabPageListeners.removeInterface( listener );
}