Merge branch 'Applications/18.04'

This commit is contained in:
Antonio Rojas 2018-04-29 19:41:29 +02:00
commit 05d389c56e

View file

@ -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);