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

List:       kde-bugs-dist
Subject:    [Bug 73108] kopete crashes when deleting a folder which contains
From:       Matt Rogers <matt.rogers () kdemail ! net>
Date:       2004-02-28 23:15:16
Message-ID: 20040228231516.16141.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
      
http://bugs.kde.org/show_bug.cgi?id=73108      
matt.rogers kdemail net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From matt.rogers kdemail net  2004-02-29 00:15 -------
CVS commit by mattr: 

Fix bug 73108. Store the group name in the YahooContact object rather
than relying on the metacontact to provide the group name all the time.

CCMAIL: 73108-done bugs kde org


  M +4 -1      yahoocontact.cpp   1.60.2.2
  M +7 -0      yahoocontact.h   1.38.4.1


--- kdenetwork/kopete/protocols/yahoo/yahoocontact.cpp  #1.60.2.1:1.60.2.2
 @ -38,4 +38,6  @ YahooContact::YahooContact(KopeteAccount
 
         m_userId = userId;
+        if ( metaContact )
+                m_groupName = metaContact->groups().getFirst()->displayName();
         m_manager = 0L;
         m_status.setStatus(YahooStatus::Offline);
 @ -195,5 +197,6  @ void YahooContact::slotDeleteContact()
         kdDebug(14180) << k_funcinfo << endl;
         //my ugliest hack yet. how many levels of indirection do I want? ;)
-        m_account->yahooSession()->removeBuddy(m_userId, \
metaContact()->groups().getFirst()->displayName()); +        if ( \
m_account->isConnected() ) +                \
m_account->yahooSession()->removeBuddy(m_userId, m_groupName);  
         KopeteContact::slotDeleteContact();

--- kdenetwork/kopete/protocols/yahoo/yahoocontact.h  #1.38:1.38.4.1
 @ -55,4 +55,9  @ public:
         void setYahooStatus(YahooStatus::Status, const QString & = "", int = 0);
 
+        /** The group name getter and setter methods**/
+        QString group() const;
+        void setGroup( const QString& );
+
+
 public slots:
         virtual void slotUserInfo();
 @ -73,4 +78,6  @ private slots:
 private:
         QString m_userId;
+        QString m_groupName;
+
         YahooStatus m_status;
         KopeteMessageManager *m_manager;


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

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