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

List:       kde-commits
Subject:    [Konversation] 655d610: Do not crash when double-clicking on channel
From:       Gary Cramblitt <garycramblitt () comcast ! net>
Date:       2010-07-01 13:27:18
Message-ID: 20100701132718.578D8BB558D () projects ! kde ! org
[Download RAW message or body]

commit 655d61023218ae552fac97e0a1f0a71b94f8774c
Author: Gary Cramblitt <garycramblitt@comcast.net>
Date:   Sat Jan 24 03:14:54 2004 +0000

    Do not crash when double-clicking on channel in Nicks Online panel.
    
    svn path=/trunk/kdeextragear-2/konversation/; revision=282178

diff --git a/konversation/nicksonline.cpp b/konversation/nicksonline.cpp
index 0bc5cf7..91699e5 100644
--- a/konversation/nicksonline.cpp
+++ b/konversation/nicksonline.cpp
@@ -131,9 +131,15 @@ void NicksOnline::setOnlineList(const QString& \
serverName,const QStringList& lis  
 void NicksOnline::processDoubleClick(QListViewItem* item)
 {
-  // only emit signal when the user double clicked a nickname rather than \
                a server name
-  if(item->parent())
-    emit doubleClicked(item->parent()->text(0),item->text(0));
+  // only emit signal when the user double clicked a nickname rather than \
a server name or channel name. +  QListViewItem* parentItem = \
item->parent(); +  if(parentItem)
+  {
+    if (!parentItem->parent())
+    {
+      emit doubleClicked(parentItem->text(0),item->text(0));
+    }
+  }
 }
 
 void NicksOnline::adjustFocus()


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

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