diff options
author | Ocke Janssen <oj@openoffice.org> | 2002-08-13 10:10:21 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2002-08-13 10:10:21 +0000 |
commit | 7d0cf9544384ada5fd1d19ace9ebdd3fc82da232 (patch) | |
tree | b544eb85a4442918370644539d2a7d735b6c3ffb /forms/source/component/DatabaseForm.cxx | |
parent | 24ec9635dc15965aaa40d9c0f5532ef48c810e68 (diff) |
#98095# remove the multiplex only when the last listener is gone
Diffstat (limited to 'forms/source/component/DatabaseForm.cxx')
-rw-r--r-- | forms/source/component/DatabaseForm.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index 880f6088b8ee..d190410d1de3 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -2,9 +2,9 @@ * * $RCSfile: DatabaseForm.cxx,v $ * - * $Revision: 1.46 $ + * $Revision: 1.47 $ * - * last change: $Author: oj $ $Date: 2002-05-10 08:16:15 $ + * last change: $Author: oj $ $Date: 2002-08-13 11:10:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -3609,7 +3609,8 @@ void SAL_CALL ODatabaseForm::removeRowSetApproveListener(const Reference<XRowSet { ReusableMutexGuard aGuard(m_aMutex); // do we have to remove the multiplex ? - if (m_aRowSetApproveListeners.getLength() == 1) + m_aRowSetApproveListeners.removeInterface(_rListener); + if ( m_aRowSetApproveListeners.getLength() == 0 ) { Reference<XRowSetApproveBroadcaster> xBroadcaster; if (query_aggregation( m_xAggregate, xBroadcaster)) @@ -3618,7 +3619,6 @@ void SAL_CALL ODatabaseForm::removeRowSetApproveListener(const Reference<XRowSet xBroadcaster->removeRowSetApproveListener(xListener); } } - m_aRowSetApproveListeners.removeInterface(_rListener); } //============================================================================== |