summaryrefslogtreecommitdiff
path: root/desktop/source/app/lockfile.cxx
diff options
context:
space:
mode:
authorLars Oppermann <lo@openoffice.org>2002-11-06 13:44:49 +0000
committerLars Oppermann <lo@openoffice.org>2002-11-06 13:44:49 +0000
commit7a197b76cb3b2867dcb9b425e62c0e0fb83e4f81 (patch)
tree0847b784669468f118c896135e8b9d0271bb4bb1 /desktop/source/app/lockfile.cxx
parentad9fe16a995da65c5da2e13ffd907ad1b5fc7d9b (diff)
#104155# handle exceptions
Diffstat (limited to 'desktop/source/app/lockfile.cxx')
-rw-r--r--desktop/source/app/lockfile.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/desktop/source/app/lockfile.cxx b/desktop/source/app/lockfile.cxx
index 199f87b506..847b3598ba 100644
--- a/desktop/source/app/lockfile.cxx
+++ b/desktop/source/app/lockfile.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: lockfile.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: lo $ $Date: 2002-10-24 15:44:30 $
+ * last change: $Author: lo $ $Date: 2002-11-06 14:44:49 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -192,6 +192,9 @@ namespace desktop {
// display warning and return response
QueryBox aBox( NULL, DesktopResId( QBX_USERDATALOCKED ) );
+ // set box title
+ String aTitle = String( DesktopResId( STR_TITLE_USERDATALOCKED ));
+ aBox.SetText( aTitle );
// insert values...
String aMsgText = aBox.GetMessText( );
aMsgText.SearchAndReplaceAscii( "$u", String( aUser, RTL_TEXTENCODING_ASCII_US) );
@@ -202,6 +205,15 @@ namespace desktop {
return aBox.Execute( );
}
+ void Lockfile::clean( void )
+ {
+ if ( m_bRemove )
+ {
+ File::remove( m_aLockname );
+ m_bRemove = sal_False;
+ }
+ }
+
Lockfile::~Lockfile( void )
{
// unlock userdata by removing file