diff options
| author | Antonio Rojas <[email protected]> | 2018-04-29 19:41:29 +0200 |
|---|---|---|
| committer | Antonio Rojas <[email protected]> | 2018-04-29 19:41:29 +0200 |
| commit | 05d389c56eb2b628c518b221d9ff8477227c64f0 (patch) | |
| tree | 04d5ed61fabfa194db1d2abe6f7b5ea2cc72d42d | |
| parent | 974b2499c410ac91e6ac5afc52ea6daba075a1cb (diff) | |
| parent | 0c05b992c0dbfb2b0651344413310d0b860c2fa7 (diff) | |
Merge branch 'Applications/18.04'
| -rw-r--r-- | src/panels/places/placesitemmodel.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/panels/places/placesitemmodel.cpp b/src/panels/places/placesitemmodel.cpp index 1270d2473..7e313482d 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); |
