┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels
diff options
context:
space:
mode:
authorAntonio Rojas <[email protected]>2018-04-29 19:39:15 +0200
committerAntonio Rojas <[email protected]>2018-04-29 19:39:15 +0200
commit0c05b992c0dbfb2b0651344413310d0b860c2fa7 (patch)
tree0423732a9e438a187f8ab8ce80f50ccad45aafb2 /src/panels
parent78c8b36dd84a94916835d702ea4a9e8eda65e8ef (diff)
Don't filter out duplicated entries from places panel
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
Diffstat (limited to 'src/panels')
-rw-r--r--src/panels/places/placesitemmodel.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/panels/places/placesitemmodel.cpp b/src/panels/places/placesitemmodel.cpp
index 444ad29ea..3641b3e42 100644
--- a/src/panels/places/placesitemmodel.cpp
+++ b/src/panels/places/placesitemmodel.cpp
@@ -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);