diff options
| author | Vishesh Handa <[email protected]> | 2014-10-14 15:51:51 +0200 |
|---|---|---|
| committer | Vishesh Handa <[email protected]> | 2014-10-14 18:08:18 +0200 |
| commit | 93465171bc56f353796bad77e2accaa8d9fe9204 (patch) | |
| tree | 6e2a06f5193899586b468d0cc86741052582ca21 /src/search | |
| parent | 7d41ad943abddc9641686e8768460960ade03c4b (diff) | |
Port Dolphin to the new Baloo APIs
REVIEW: 120582
Diffstat (limited to 'src/search')
| -rw-r--r-- | src/search/dolphinsearchbox.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index de73c2c42..b8b1dbbca 100644 --- a/src/search/dolphinsearchbox.cpp +++ b/src/search/dolphinsearchbox.cpp @@ -479,7 +479,7 @@ KUrl DolphinSearchBox::balooUrlForSearching() const } if (m_fromHereButton->isChecked()) { - query.addCustomOption("includeFolder", m_searchPath.toLocalFile()); + query.setIncludeFolder(m_searchPath.toLocalFile()); } return query.toSearchUrl(i18nc("@title UDS_DISPLAY_NAME for a KIO directory listing. %1 is the query the user entered.", @@ -499,9 +499,9 @@ void DolphinSearchBox::fromBalooSearchUrl(const KUrl& url) // while we adjust the search text and the facet widget. blockSignals(true); - const QVariantMap customOptions = query.customOptions(); - if (customOptions.contains("includeFolder")) { - setSearchPath(customOptions.value("includeFolder").toString()); + const QString customDir = query.includeFolder(); + if (!customDir.isEmpty()) { + setSearchPath(customDir); } else { setSearchPath(QDir::homePath()); } |
