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

List:       kde-commits
Subject:    KDE/kdebase/apps/plasma/applets/folderview
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2010-09-20 18:45:45
Message-ID: 20100920184545.C475BAC7CB () svn ! kde ! org
[Download RAW message or body]

SVN commit 1177604 by aseigo:

check the item for validity just to be safe


 M  +2 -0      folderview.cpp  


--- trunk/KDE/kdebase/apps/plasma/applets/folderview/folderview.cpp #1177603:1177604
@@ -1815,9 +1815,11 @@
 
     foreach (const QModelIndex &index, indexes) {
         KFileItem item = m_model->itemForIndex(index);
+        if (!item.isNull()) {
         hasRemoteFiles |= item.localPath().isEmpty();
         items.append(item);
     }
+    }
 
     // Check if we're showing the menu for the trash link
     if (items.count() == 1 && items.at(0).isDesktopFile()) {
[prev in list] [next in list] [prev in thread] [next in thread] 

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