From 2fd31c8a95eaa38defa0f6adf3b83b12fc1aa1a3 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 16 May 2012 19:15:49 +0200 Subject: Update trash-icon dependent on whether the thrash is empty or not The class PlacesItemStorageAccessListener has been renamed to PlacesItemSignalHandler and represents a generic signal handler for the PlacesItem. --- src/panels/places/placesitemmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/panels/places/placesitemmodel.cpp') diff --git a/src/panels/places/placesitemmodel.cpp b/src/panels/places/placesitemmodel.cpp index 4fb86fda8..aaeab796e 100644 --- a/src/panels/places/placesitemmodel.cpp +++ b/src/panels/places/placesitemmodel.cpp @@ -761,8 +761,8 @@ void PlacesItemModel::hideItem(int index) const int newIndex = bookmarkIndex(index); if (newIndex >= 0) { - PlacesItem* hiddenItem = new PlacesItem(*shownItem); - const KBookmark hiddenBookmark = hiddenItem->bookmark(); + const KBookmark hiddenBookmark = shownItem->bookmark(); + PlacesItem* hiddenItem = new PlacesItem(hiddenBookmark); const PlacesItem* previousItem = placesItem(index - 1); KBookmark previousBookmark; -- cgit v1.3