Kaydet (Commit) b3879cd8 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS c09tosrc (1.57.50); FILE MERGED

2007/06/26 08:52:06 hro 1.57.50.1: #i73550# Disabling/Enabling quickstarter without restarting/terminating it on Windows platforms
üst eca8e298
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: shutdownicon.cxx,v $ * $RCSfile: shutdownicon.cxx,v $
* *
* $Revision: 1.58 $ * $Revision: 1.59 $
* *
* last change: $Author: hr $ $Date: 2007-06-27 23:01:13 $ * last change: $Author: rt $ $Date: 2007-07-06 12:31:36 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -848,19 +848,22 @@ void ShutdownIcon::SetAutostart( bool bActivate ) ...@@ -848,19 +848,22 @@ void ShutdownIcon::SetAutostart( bool bActivate )
OString aShortcutUnx = OUStringToOString( aShortcut, OString aShortcutUnx = OUStringToOString( aShortcut,
osl_getThreadTextEncoding() ); osl_getThreadTextEncoding() );
symlink( aDesktopFileUnx, aShortcutUnx ); symlink( aDesktopFileUnx, aShortcutUnx );
#endif // UNX
ShutdownIcon *pIcon = ShutdownIcon::createInstance(); ShutdownIcon *pIcon = ShutdownIcon::createInstance();
if( pIcon ) if( pIcon )
pIcon->initSystray(); pIcon->initSystray();
#endif // UNX
} }
else else
{ {
OUString aShortcutUrl; OUString aShortcutUrl;
::osl::File::getFileURLFromSystemPath( aShortcut, aShortcutUrl ); ::osl::File::getFileURLFromSystemPath( aShortcut, aShortcutUrl );
::osl::File::remove( aShortcutUrl ); ::osl::File::remove( aShortcutUrl );
#ifdef UNX
ShutdownIcon *pIcon = getInstance(); ShutdownIcon *pIcon = getInstance();
if( pIcon ) if( pIcon )
pIcon->deInitSystray(); pIcon->deInitSystray();
#endif
} }
#else #else
(void)bActivate; // unused variable (void)bActivate; // unused variable
......
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