From kde-commits Mon Sep 20 18:43:30 2010 From: =?utf-8?q?Aaron=20J=2E=20Seigo?= Date: Mon, 20 Sep 2010 18:43:30 +0000 To: kde-commits Subject: KDE/kdebase/apps/plasma/applets/folderview Message-Id: <20100920184330.E989DAC7CB () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=128500789506305 SVN commit 1177602 by aseigo: ensure the file items returned are valid BUG:251842 M +2 -0 popupview.cpp --- trunk/KDE/kdebase/apps/plasma/applets/folderview/popupview.cpp #1177601:1177602 @@ -306,9 +306,11 @@ foreach (const QModelIndex &index, m_selectionModel->selectedIndexes()) { 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()) {