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

List:       kde-bugs-dist
Subject:    [Bug 107046] still able to open a chat to yourself in the chat window
From:       Olivier Goffart <ogoffart () kde ! org>
Date:       2005-07-16 12:15:40
Message-ID: 20050716121540.30629.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=107046         




------- Additional Comments From ogoffart kde org  2005-07-16 14:15 -------
SVN commit 435258 by ogoffart:

Backport FIX Bug 107046: still able to open a chat to yourself in the chat window members list
CCBUG: 107046



 M  +8 -1      chatmemberslistwidget.cpp  


--- branches/KDE/3.4/kdenetwork/kopete/kopete/chatwindow/chatmemberslistwidget.cpp #435257:435258
 @ -207,7 +207,14  @
 void ChatMembersListWidget::slotExecute( QListViewItem *item )
 {
 	if ( ContactItem *contactItem = dynamic_cast<ContactItem*>(item ) )
-		contactItem->contact()->execute();
+	{
+		Kopete::Contact *contact=contactItem->contact();
+
+		if(!contact || contact == contact->account()->myself())
+			return;
+				
+		contact->execute();
+	}
 }
 
 QDragObject *ChatMembersListWidget::dragObject()
[prev in list] [next in list] [prev in thread] [next in thread] 

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