┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <[email protected]>2017-11-16 12:32:49 -0300
committerRenato Araujo Oliveira Filho <[email protected]>2017-12-14 09:40:34 -0300
commitda6f8fe0862585287153f0d90e19eab0b34bfbef (patch)
tree75fcb68ef19e54d7c5f6209636a30e1968ef9b87 /src/search
parent8cea647ce11dbc8bb009f8a16adaaa94be3dcfb1 (diff)
Use Kio::KPlacesModel as source model for PlacesItemModel
Summary: Use Kio::KPlacesModel as source model for PlacesItemModel avoiding duplicated code. Depends on D8862 Depends on D8332 Depends on D8434 Depends on D8348 Depends on D8630 Test Plan: Unit test created Reviewers: elvisangelaccio, emmanuelp, mlaurent, mwolff Reviewed By: elvisangelaccio, mlaurent, mwolff Subscribers: mwolff, mlaurent, anthonyfieroni, nicolasfella, ngraham, #dolphin Differential Revision: https://phabricator.kde.org/D8855
Diffstat (limited to 'src/search')
-rw-r--r--src/search/dolphinsearchbox.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp
index 60678eb45..44de97aa0 100644
--- a/src/search/dolphinsearchbox.cpp
+++ b/src/search/dolphinsearchbox.cpp
@@ -310,11 +310,9 @@ void DolphinSearchBox::slotSearchSaved()
if (searchURL.isValid()) {
PlacesItemModel model;
const QString label = i18n("Search for %1 in %2", text(), searchPath().fileName());
- PlacesItem* item = model.createPlacesItem(label,
- searchURL,
- QStringLiteral("folder-saved-search-symbolic"));
- model.appendItemToGroup(item);
- model.saveBookmarks();
+ model.createPlacesItem(label,
+ searchURL,
+ QStringLiteral("folder-saved-search-symbolic"));
}
}