logo       

Re: Bug in Addressee: msg#00422

kde.devel.pim

Subject: Re: Bug in Addressee

On Wednesday 29 May 2002 14:50, Tobias Koenig wrote:
>
> I have a problem with the behaviour of Addressee::realName() and
> kaddressbook. If you want to create a new entry in kaddressbook and
> type in a name in the first tab of addresseeeditordialog (e.g. "test
> User"), then you can click on the 'Name...' button and change the
> 'Given Name' (e.g. from "test" to "Test"). But if you click 'OK' now,
> the change isn't applyed to the LineEdit or ComboBox on the tab.
>
> The reason for this bug is the first line in Addressee::realName()
>
> if (!formattedName().isEmpty()) return formattedName();
>
> When typing in the name in the tab, the formattedName is set in
> addressee. If you change the givenName now, realName() does not
> calculate the new mRealName, but returns the old formattedName.

I don't think this is an Addressee bug. The line you quote is correct as
the formattedName should be an override, if the formatting can't be
deduced from the individual name fields. In most cases it should be
empty.

> Any clue how to solve it in a clean way?

KAddressBook either has to not set the formattedName or the "Name..."
dialog has to set the formatted name when being closed.

--
Cornelius Schumacher <schumacher@xxxxxxx>
_______________________________________________
kde-pim mailing list
kde-pim@xxxxxxxxxxxx
http://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise