Summary: | Add to Address Book fails under certain circumstances | ||
---|---|---|---|
Product: | [Unmaintained] kab3 | Reporter: | Wolfgang Thiess <mail> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 3.2.1 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Wolfgang Thiess
2004-03-12 11:51:59 UTC
That's a bug in KAddressBook. Obviously it doesn't release the lock if the New Contact dialog is cancelled. I also noticed that two lock files are created. Do I have to delete those lock file to be able to add to addressbook? If yes, where are those files and what name? Now kmail and addressbook are useless. Do I have to delete those lock file to be able to add to addressbook? If yes, where are those files and what name? Now kmail and addressbook are useless. confirm - and it also happens when using normally kontact and want to edit a contact - no response from app also if in kontact i want to add a contact to addressbook, it comes "Can't save to addressbook" very anoying bug - makes kontact useless, as no edit possibility for contacts CVS commit by tokoe: Unlock the standard resource as well. That fixes #77373 CCMAIL:77373-done@bugs.kde.org M +8 -0 kablock.cpp 1.5 M +5 -2 kablock.h 1.2 --- kdepim/kaddressbook/kablock.cpp #1.4:1.5 @@ -28,4 +28,9 @@ #include "kablock.h" +// sorry for this hack, but i need AddressBook::standardResource() +#define protected public +#include <kabc/addressbook.h> +#include <kabc/resource.h> + KABLock *KABLock::mSelf = 0; @@ -71,4 +76,7 @@ bool KABLock::lock( KABC::Resource *reso bool KABLock::unlock( KABC::Resource *resource ) { + if ( resource == 0 ) + resource = mAddressBook->standardResource(); + if ( mLocks.find( resource ) == mLocks.end() ) { // hmm, not good... return false; --- kdepim/kaddressbook/kablock.h #1.1:1.2 @@ -25,6 +25,9 @@ #define KABLOCK_H -#include <kabc/addressbook.h> -#include <kabc/resource.h> +namespace KABC { +class AddressBook; +class Resource; +class Ticket; +} typedef struct { The development of the old KAddressBook will be discontinued for KDE 4.4. Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product. |