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

List:       kde-commits
Subject:    branches/KDE/3.5/kdebase
From:       Stephan Kulow <coolo () kde ! org>
Date:       2006-12-04 9:29:02
Message-ID: 1165224542.198407.20421.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 610419 by coolo:

protect against empty lists
BUG: 136958


 M  +2 -1      kfind/kfindpart.cpp  
 M  +2 -0      konqueror/listview/konq_treeviewwidget.cc  


--- branches/KDE/3.5/kdebase/kfind/kfindpart.cpp #610418:610419
@@ -145,7 +145,8 @@
     return;
   emit started();
   emit clear();
-  emit newItems(m_lstFileItems);
+  if (m_lstFileItems.count())
+    emit newItems(m_lstFileItems);
   emit finished();
 }
 
--- branches/KDE/3.5/kdebase/konqueror/listview/konq_treeviewwidget.cc #610418:610419
@@ -189,6 +189,8 @@
 
 void KonqTreeViewWidget::slotNewItems( const KFileItemList &entries )
 {
+    if (!entries.count())
+        return;
     // Find parent item - it's the same for all the items
     QPtrListIterator<KFileItem> kit( entries );
     KURL dir( (*kit)->url().upURL() );
[prev in list] [next in list] [prev in thread] [next in thread] 

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