Addressbook: improve handling of prettyName when creating new contact
commit8a72cafb7cb35dd3cdc0e948599a7f7896f1b723
authorCaspar Schutijser <caspar@schutijser.com>
Sat, 25 May 2013 13:12:13 +0000 (25 15:12 +0200)
committerCaspar Schutijser <caspar@schutijser.com>
Sat, 25 May 2013 13:31:02 +0000 (25 15:31 +0200)
treeec5ce3c050ef90ddbfde29a8a9730e2f8f0d1bd8
parentd6fa95e6d53888436d66ab0a743660ff4e883984
Addressbook: improve handling of prettyName when creating new contact

If prettyName is empty, use the default value for the name field (so
don't show an empty name field, users will think they cannot click
there).

If prettyName is not empty, set the text of the QStandardItem to
prettyName. Before, the text of the QStandardItem would be
"[New Contact]" until we selected another contact.
src/AbookAddressbook/be.contacts.cpp