]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Don't filter out duplicated entries from places panel
authorAntonio Rojas <arojas@archlinux.org>
Sun, 29 Apr 2018 17:39:15 +0000 (19:39 +0200)
committerAntonio Rojas <arojas@archlinux.org>
Sun, 29 Apr 2018 17:39:15 +0000 (19:39 +0200)
This can lead to crashes and is inconsistent with the KIO file picker dialog, which shows duplicated entries.
BUG: 393528

Differential Revision: https://phabricator.kde.org/D12558

src/panels/places/placesitemmodel.cpp

index 444ad29eaba6ad51290c8e03e3aba1ab03fa3494..3641b3e42a0e4c8cb9ced8d78f4526ef9b6a64f6 100644 (file)
@@ -397,10 +397,7 @@ void PlacesItemModel::addItemFromSourceModel(const QModelIndex &index)
 
     const KBookmark bookmark = m_sourceModel->bookmarkForIndex(index);
     Q_ASSERT(!bookmark.isNull());
-    PlacesItem *item = itemFromBookmark(bookmark);
-    if (!item) {
-        item = new PlacesItem(bookmark);
-    }
+    PlacesItem *item = new PlacesItem(bookmark);
     updateItem(item, index);
     insertSortedItem(item);