Kaydet (Commit) 7d0cf954 authored tarafından Ocke Janssen's avatar Ocke Janssen

#98095# remove the multiplex only when the last listener is gone

üst 24ec9635
......@@ -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);
}
//==============================================================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment