summaryrefslogtreecommitdiff
path: root/forms/source/component/DatabaseForm.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2002-08-13 10:10:21 +0000
committerOcke Janssen <oj@openoffice.org>2002-08-13 10:10:21 +0000
commit7d0cf9544384ada5fd1d19ace9ebdd3fc82da232 (patch)
treeb544eb85a4442918370644539d2a7d735b6c3ffb /forms/source/component/DatabaseForm.cxx
parent24ec9635dc15965aaa40d9c0f5532ef48c810e68 (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.cxx8
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);
}
//==============================================================================