Summary: | crash when resending a message to a user | ||
---|---|---|---|
Product: | [Applications] kopete | Reporter: | Pupeno <pupeno> |
Component: | Jabber Plugin | Assignee: | Till Gerken <till.gerken> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Mandrake RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Pupeno
2003-02-05 06:44:43 UTC
Subject: kdenonbeta/kopete/protocols/jabber CVS commit by gerken: Showstopper fix, JMM still needs reworking for next release to fit new KMM and chatwindow code. Thanks to Brunes and Bille for their help. CCMAIL: 54117-done@bugs.kde.org M +2 -2 jabbermessagemanager.cpp 1.8 M +1 -11 jabberprotocol.cpp 1.143 --- kdenonbeta/kopete/protocols/jabber/jabbermessagemanager.cpp #1.7:1.8 @@ -49,6 +49,6 @@ JabberMessageManager::JabberMessageManag // in order to use auto-deletion, we have to create a chat window // first or we will self-destruct ourselves right away - newChatView(); - setCanBeDeleted(true); + //newChatView(); + //setCanBeDeleted(true); } --- kdenonbeta/kopete/protocols/jabber/jabberprotocol.cpp #1.142:1.143 @@ -1253,15 +1253,5 @@ void JabberProtocol::slotMessageManagerD << endl; - for(JabberMessageManagerMap::iterator it = messageManagerMap.begin(); - it != messageManagerMap.end(); it++) - { - // static cast required unfortunately - if(it.data() == (JabberMessageManager *)manager) - { - kdDebug(JABBER_DEBUG_GLOBAL) << "[JabberProtocol] slotMessageManagerDeleted() " - << "found a match in " << it.key() << endl; - messageManagerMap.remove(it); - } - } + messageManagerMap.remove(manager->user()->contactId()); } |