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

List:       kde-commits
Subject:    playground/devtools/icemon-kde3/src
From:       André Wöbbeking <Woebbeking () web ! de>
Date:       2006-09-12 14:11:07
Message-ID: 1158070267.877095.29533.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 583517 by woebbe:

checkNode(): ignore crap

 M  +9 -2      hostlistview.cc  


--- trunk/playground/devtools/icemon-kde3/src/hostlistview.cc #583516:583517
@@ -1,7 +1,7 @@
 /*
     This file is part of Icecream.
 
-    Copyright (c) 2004 Andre Wöbbeking <Woebbeking@web.de>
+    Copyright (c) 2004-2006 Andre Wöbbeking <Woebbeking@web.de>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -210,12 +210,19 @@
 void HostListView::checkNode( unsigned int hostid )
 {
     const HostInfo* info = mHostInfoManager->find( hostid );
+    if ( !info )
+        return;
 
     ItemMap::iterator it = mItems.find( hostid );
     if ( it == mItems.end() )
-        mItems[hostid] = new HostListViewItem( this, *info );
+    {
+        if ( !info->name().isEmpty() )
+            mItems[hostid] = new HostListViewItem( this, *info );
+    }
     else
+    {
         ( *it )->updateText( *info );
+    }
     mUpdateSortTimer.start( 0, true );
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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