mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
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
This commit is contained in:
parent
78c8b36dd8
commit
0c05b992c0
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue