summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/shutdownicon.cxx
diff options
context:
space:
mode:
authorCarsten Driesner <cd@openoffice.org>2002-04-23 05:32:22 +0000
committerCarsten Driesner <cd@openoffice.org>2002-04-23 05:32:22 +0000
commitfb82a16f20ff95a2125151ceed6b6d1055b7c403 (patch)
tree5cf3a3441886fef3f0627b9942241de89583c7a3 /sfx2/source/appl/shutdownicon.cxx
parent8f826827adc6fbe69f0ab6f2b9d8a5f993e70a45 (diff)
#98668# Show tray icon everytime service is initialized
Diffstat (limited to 'sfx2/source/appl/shutdownicon.cxx')
-rw-r--r--sfx2/source/appl/shutdownicon.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx
index ef9950c7a2dc..542305b9e94d 100644
--- a/sfx2/source/appl/shutdownicon.cxx
+++ b/sfx2/source/appl/shutdownicon.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: shutdownicon.cxx,v $
*
- * $Revision: 1.26 $
+ * $Revision: 1.27 $
*
- * last change: $Author: cd $ $Date: 2002-04-11 12:20:39 $
+ * last change: $Author: cd $ $Date: 2002-04-23 06:32:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -522,7 +522,7 @@ void SAL_CALL ShutdownIcon::initialize( const ::com::sun::star::uno::Sequence< :
{
::osl::ClearableMutexGuard aGuard( m_aMutex );
- if ( !ShutdownIcon::pShutdownIcon && aArguments.getLength() > 0 )
+ if ( aArguments.getLength() > 0 )
{
try
{
@@ -540,7 +540,8 @@ void SAL_CALL ShutdownIcon::initialize( const ::com::sun::star::uno::Sequence< :
if ( !m_xDesktop.is() )
return;
- ShutdownIcon::pShutdownIcon = this;
+ if ( !ShutdownIcon::pShutdownIcon )
+ ShutdownIcon::pShutdownIcon = this;
#ifdef WNT
initSystray();
#endif