mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-05 16:19:10 +00:00
Next QUrl porting bug found: search include directories
This commit is contained in:
parent
6787467a7b
commit
41424d0109
|
@ -156,7 +156,7 @@ void DolphinSearchBox::fromSearchUrl(const QUrl& url)
|
||||||
fromBalooSearchUrl(url);
|
fromBalooSearchUrl(url);
|
||||||
} else if (url.scheme() == "filenamesearch") {
|
} else if (url.scheme() == "filenamesearch") {
|
||||||
setText(url.queryItemValue("search"));
|
setText(url.queryItemValue("search"));
|
||||||
setSearchPath(url.queryItemValue("url"));
|
setSearchPath(QUrl::fromUserInput(url.queryItemValue("url"), QString(), QUrl::AssumeLocalFile));
|
||||||
m_contentButton->setChecked(url.queryItemValue("checkContent") == "yes");
|
m_contentButton->setChecked(url.queryItemValue("checkContent") == "yes");
|
||||||
} else {
|
} else {
|
||||||
setText(QString());
|
setText(QString());
|
||||||
|
@ -474,7 +474,7 @@ void DolphinSearchBox::fromBalooSearchUrl(const QUrl& url)
|
||||||
|
|
||||||
const QString customDir = query.includeFolder();
|
const QString customDir = query.includeFolder();
|
||||||
if (!customDir.isEmpty()) {
|
if (!customDir.isEmpty()) {
|
||||||
setSearchPath(customDir);
|
setSearchPath(QUrl::fromLocalFile(customDir));
|
||||||
} else {
|
} else {
|
||||||
setSearchPath(QDir::homePath());
|
setSearchPath(QDir::homePath());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue