]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Next QUrl porting bug found: search include directories
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Thu, 26 Feb 2015 16:15:18 +0000 (17:15 +0100)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Thu, 26 Feb 2015 16:15:18 +0000 (17:15 +0100)
src/search/dolphinsearchbox.cpp

index 9e908de5d852283458407e88957b752ad5edab99..d4ebba8c020f34f9392dc3c55961fb1e813ec583 100644 (file)
@@ -156,7 +156,7 @@ void DolphinSearchBox::fromSearchUrl(const QUrl& url)
         fromBalooSearchUrl(url);
     } else if (url.scheme() == "filenamesearch") {
         setText(url.queryItemValue("search"));
         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());
         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()) {
 
     const QString customDir = query.includeFolder();
     if (!customDir.isEmpty()) {
-        setSearchPath(customDir);
+        setSearchPath(QUrl::fromLocalFile(customDir));
     } else {
         setSearchPath(QDir::homePath());
     }
     } else {
         setSearchPath(QDir::homePath());
     }