diff options
| author | Emmanuel Pescosta <[email protected]> | 2015-02-26 17:15:18 +0100 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2015-02-26 17:15:18 +0100 |
| commit | 41424d010934e0a47958d0192c7c4de69ea3e955 (patch) | |
| tree | 5130d5e3f886511b99cc1139ccca20580c64470c | |
| parent | 6787467a7b3b54971ce023c1ba1a36b5d1a7c499 (diff) | |
Next QUrl porting bug found: search include directories
| -rw-r--r-- | src/search/dolphinsearchbox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index 9e908de5d..d4ebba8c0 100644 --- a/src/search/dolphinsearchbox.cpp +++ b/src/search/dolphinsearchbox.cpp @@ -156,7 +156,7 @@ void DolphinSearchBox::fromSearchUrl(const QUrl& url) fromBalooSearchUrl(url); } else if (url.scheme() == "filenamesearch") { setText(url.queryItemValue("search")); - setSearchPath(url.queryItemValue("url")); + setSearchPath(QUrl::fromUserInput(url.queryItemValue("url"), QString(), QUrl::AssumeLocalFile)); m_contentButton->setChecked(url.queryItemValue("checkContent") == "yes"); } else { setText(QString()); @@ -474,7 +474,7 @@ void DolphinSearchBox::fromBalooSearchUrl(const QUrl& url) const QString customDir = query.includeFolder(); if (!customDir.isEmpty()) { - setSearchPath(customDir); + setSearchPath(QUrl::fromLocalFile(customDir)); } else { setSearchPath(QDir::homePath()); } |
