[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/kopete/libkopete/ui
From:       Jason Keirstead <jason () keirstead ! org>
Date:       2003-03-21 21:01:45
[Download RAW message or body]

CVS commit by brunes: 

Fix bug with extra KMMs that was only appearing in IRC


  M +4 -3      chatview.cpp   1.217
  M +2 -1      chatview.h   1.99


--- kdenonbeta/kopete/libkopete/ui/chatview.cpp  #1.216:1.217
@@ -599,5 +599,5 @@ void ChatView::slotContactAdded(const Ko
                 }
 
-                memberContactMap.insert(c, new KopeteContactLVI( c, \
membersList ) ); +                memberContactMap.insert(c, new \
KopeteContactLVI( this, c, membersList ) );  }
 }
@@ -1229,8 +1229,9 @@ void ChatView::slotUpdateBackground(cons
 //  KopeteContactLVI
 
-KopeteContactLVI::KopeteContactLVI( const KopeteContact *contact, \
KListView *parent ) : KListViewItem( parent ) \
+KopeteContactLVI::KopeteContactLVI( KopeteView *view, const KopeteContact \
*contact, KListView *parent ) : KListViewItem( parent )  {
         m_contact = contact;
         m_parentView = parent;
+        m_view = view;
 
         if( m_contact->metaContact() )
@@ -1260,5 +1261,5 @@ void KopeteContactLVI::slotDisplayNameCh
 void KopeteContactLVI::slotStatusChanged()
 {
-        setPixmap( 0, \
((KopeteContact*)m_contact)->manager()->contactOnlineStatus( m_contact \
).iconFor(m_contact) ); +        setPixmap( 0, \
m_view->msgManager()->contactOnlineStatus( m_contact ).iconFor(m_contact) \
);  }
 

--- kdenonbeta/kopete/libkopete/ui/chatview.h  #1.98:1.99
@@ -63,5 +63,5 @@ class KopeteContactLVI : public QObject,
 
 public:
-        KopeteContactLVI( const KopeteContact *contact, KListView *parent \
); +        KopeteContactLVI( KopeteView *view, const KopeteContact \
*contact, KListView *parent );  const KopeteContact *contact() { return \
m_contact; }  
@@ -69,4 +69,5 @@ private:
         const KopeteContact *m_contact;
         KListView *m_parentView;
+        KopeteView *m_view;
 
 private slots:


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic