mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Merge branch 'Applications/18.04'
This commit is contained in:
commit
05d389c56e
|
@ -397,10 +397,7 @@ void PlacesItemModel::addItemFromSourceModel(const QModelIndex &index)
|
||||||
|
|
||||||
const KBookmark bookmark = m_sourceModel->bookmarkForIndex(index);
|
const KBookmark bookmark = m_sourceModel->bookmarkForIndex(index);
|
||||||
Q_ASSERT(!bookmark.isNull());
|
Q_ASSERT(!bookmark.isNull());
|
||||||
PlacesItem *item = itemFromBookmark(bookmark);
|
PlacesItem *item = new PlacesItem(bookmark);
|
||||||
if (!item) {
|
|
||||||
item = new PlacesItem(bookmark);
|
|
||||||
}
|
|
||||||
updateItem(item, index);
|
updateItem(item, index);
|
||||||
insertSortedItem(item);
|
insertSortedItem(item);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue