Version: 1.6.1 (using KDE 3.2.1, Gentoo) Compiler: gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) OS: Linux (i686) release 2.6.3-gentoo-r1 Open kaddressbook Click File:"New Contact..." Click Cancel (It's important for reproducing the error to open and close the New Contact dialog.) Keep kaddressbook open Open kmail Rightclick an email address of just any mail in the preview window - select "Add to Address Book". The result is a message box saying: "Can't save to addressbook". This does not occur, if the New Contact dialog has not been opened within the sequence. Maybe this is a flaw in kaddressbook, but it should be changed in some way. The error message is just confusing.
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.
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.