Bug 238375

Summary: Disable "New Contact" when no address book defined
Product: [Applications] kaddressbook Reporter: Ben Adler <benadler>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: tokoe, wstephenson
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ben Adler 2010-05-21 11:06:11 UTC
Version:           svn trunk from 2010-05-20 (using Devel)
Compiler:          gcc 
OS:                Linux
Installed from:    Compiled sources

Please disable the "New Contact" button when kaddressbook is unable to save a contact.

I just started kaddressbook and it came up completely empty. No address books, no contacts, no groups. I clicked "New Contact" and spent some time to enter lots of details for my first contact. After pressing OK, I was prompted with an address book to select where I wanted this contact to be saved. This dialog was empty and didn't offer me to create an address book. I could only press Cancel, and then my contact data was lost.

I think thats a rather frustrating bug.

Please disable the "New Contact" button when kaddressbook is unable to save a contact.
Comment 1 Will Stephenson 2010-05-28 15:42:56 UTC
Confirmed, needs backport to 4.4 branch too.
Comment 2 Tobias Koenig 2010-06-20 12:13:38 UTC
SVN commit 1140325 by tokoe:

Enabled/disable the 'New Contact' and 'New Contact Group' actions depending
on whether there exists a writable address book

BUG: 238375


 M  +44 -6     standardcontactactionmanager.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1140325