summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authornpower Developer <npower@openoffice.org>2010-03-03 18:23:05 +0000
committernpower Developer <npower@openoffice.org>2010-03-03 18:23:05 +0000
commite8a31aab0a174873306d78df361c3646c7e4215d (patch)
treef94b0f36b6ac03e921d351608268ebb10cf680fa /basctl
parent92226d16f811d29618f505fffae3051710c1eadf (diff)
npower13_objectmodule: #i109734# re-instate listening for module creation/delete ( useful generally I think )
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basidesh.cxx15
1 files changed, 3 insertions, 12 deletions
diff --git a/basctl/source/basicide/basidesh.cxx b/basctl/source/basicide/basidesh.cxx
index 608cc51c1ff3..036127e1c844 100644
--- a/basctl/source/basicide/basidesh.cxx
+++ b/basctl/source/basicide/basidesh.cxx
@@ -1006,26 +1006,17 @@ void BasicIDEShell::SetCurLib( const ScriptDocument& rDocument, String aLibName,
{
if ( !bCheck || ( rDocument != m_aCurDocument || aLibName != m_aCurLibName ) )
{
- ContainerListenerImpl* pListener = NULL;
-
- pListener = dynamic_cast< ContainerListenerImpl* >( m_xLibListener.get() );
+ ContainerListenerImpl* pListener = pListener = static_cast< ContainerListenerImpl* >( m_xLibListener.get() );
if ( pListener )
pListener->removeContainerListener( m_aCurDocument, m_aCurLibName );
m_aCurDocument = rDocument;
- if ( m_aCurDocument.isInVBAMode() )
- {
- if ( !pListener )
- {
+ pListener->addContainerListener( m_aCurDocument, aLibName );
- pListener = new ContainerListenerImpl( this );
- m_xLibListener = pListener;
- }
- pListener->addContainerListener( m_aCurDocument, aLibName );
- }
m_aCurLibName = aLibName;
+
if ( bUpdateWindows )
UpdateWindows();