| Summary: | Kopete DBus bad behaviour with linked addressbook contacts | ||
|---|---|---|---|
| Product: | [Unmaintained] kopete | Reporter: | Lukas <Lukas.Pinkowski> |
| Component: | DBus | Assignee: | Kopete Developers <kopete-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | nathan, sebastian.radish, vanmeeuwen |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed In: | ||
| Sentry Crash Report: | |||
|
Description
Lukas
2009-03-06 02:03:56 UTC
Kopete DBus has much improved since KDE 4.0 but your are right. This is still a bug.
I had a look through the source and found something interesting:
The dbus methode conacts() returns a list of !!meta!! contacts. So gG2oDHcPwx is the meta contanct id.
The dbus methode contactProperties() calls KopeteDBusInterfacePrivate::findContact() and this methode calls Kopete::ContactList::self()->findMetaContactByContactId(). This means: conactProperties() wants a contact id and not a !!meta!! contact id.
I think changing the line:
contact = Kopete::ContactList::self()->findMetaContactByContactId(
nameOrId);
to:
contact = Kopete::ContactList::self()->metaContact(
nameOrId);
in:
kopete/kopetedbusinterface_p.cpp will solve the problem.
Btw: The same problem exists in sendMessage(), getDisplayName(), etc. I think this change will solve those problems, too.
*** Bug 167441 has been marked as a duplicate of this bug. *** I've tryed KDE4.3 and this seems fixed now. Marking as such *** Bug 208737 has been marked as a duplicate of this bug. *** |