author | zautrix <zautrix> | 2004-09-11 23:25:03 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-11 23:25:03 (UTC) |
commit | 0a2900e71fd3d80393d67c81aab3aae19d2d680c (patch) (side-by-side diff) | |
tree | 1f2926eca6bee600819932603eaaf28c7f267d6b /kabc/plugins/file/resourcefile.cpp | |
parent | a040c9d56282dae396b02627fafb602e44323837 (diff) | |
download | kdepimpi-0a2900e71fd3d80393d67c81aab3aae19d2d680c.zip kdepimpi-0a2900e71fd3d80393d67c81aab3aae19d2d680c.tar.gz kdepimpi-0a2900e71fd3d80393d67c81aab3aae19d2d680c.tar.bz2 |
Bugfixes
Diffstat (limited to 'kabc/plugins/file/resourcefile.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kabc/plugins/file/resourcefile.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/kabc/plugins/file/resourcefile.cpp b/kabc/plugins/file/resourcefile.cpp index fa6bc49..17263ae 100644 --- a/kabc/plugins/file/resourcefile.cpp +++ b/kabc/plugins/file/resourcefile.cpp @@ -55,2 +55,3 @@ $Id$ +//#define ALLOW_LOCKING @@ -149,7 +150,8 @@ Ticket *ResourceFile::requestSaveTicket() +#ifdef ALLOW_LOCKING if ( !lock( mFileName ) ) { - kdDebug(5700) << "ResourceFile::requestSaveTicket(): Unable to lock file '" - << mFileName << "'" << endl; + qDebug("unablt to lock file "); return 0; } +#endif return createTicket( this ); @@ -248,3 +250,5 @@ bool ResourceFile::save( Ticket *ticket ) delete ticket; +#ifdef ALLOW_LOCKING unlock( mFileName ); +#endif @@ -255,2 +259,3 @@ bool ResourceFile::lock( const QString &fileName ) { +#ifdef ALLOW_LOCKING @@ -297,2 +302,5 @@ bool ResourceFile::lock( const QString &fileName ) return false; +#else + return true; +#endif } @@ -301,2 +309,3 @@ void ResourceFile::unlock( const QString &fileName ) { +#ifdef ALLOW_LOCKING QString fn = fileName; @@ -312,2 +321,5 @@ void ResourceFile::unlock( const QString &fileName ) addressBook()->emitAddressBookUnlocked(); +#else + return; +#endif } |