[Bug 46657] Re: Kopete gives error when you're on your own contact list

Joachim Schiele js at lastlog.de
Sun Feb 10 03:35:02 UTC 2008


this patch is hopefully what we want. a kopete developer noticed when
using information() instead of using queuedMessageBox() might crash
kopete. i couldn't reproduce this and i tried pretty hard. maybe someone
else has more luck crashing it.

i will post this bug in the kopete bug tracker as well.

# diff kopeteaccount.cpp /tmp/kopeteaccount.cpp
257,259c257,261
<               KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Error,
<                       i18n("You are not allowed to add yourself to the contact list. The addition of \"%1\" to account \"%2\" will not take place.").arg(contactId,accountId()), i18n("Error Creating Contact")
<               );
---
>               QString text = QString().fromAscii("You can't add your own contact to your own contact list in kopete!");
>               QString caption = QString().fromAscii("icq contact issue");
>               QString name = QString().fromAscii("kopete won't add your own contact to your own contact list");
>
>               KMessageBox::information(Kopete::UI::Global::mainWidget(), text, caption, name);
320a323,324
>       // this function will be called if you're own contact id wasn't yet added to your
>         // contact list
325a330
>

have fun

-- 
Kopete gives error when you're on your own contact list
https://bugs.launchpad.net/bugs/46657
You received this bug notification because you are a member of Kubuntu
Team, which is a direct subscriber.




More information about the kubuntu-bugs mailing list