mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Do only search for files by default.
svn path=/trunk/KDE/kdebase/apps/; revision=1147115
This commit is contained in:
parent
6170858f34
commit
c5157d36ba
1 changed files with 5 additions and 6 deletions
|
@ -362,17 +362,16 @@ Nepomuk::Query::Query DolphinSearchOptionsConfigurator::nepomukQuery() const
|
|||
}
|
||||
}
|
||||
|
||||
Nepomuk::Query::FileQuery fileQuery;
|
||||
fileQuery.setFileMode( Nepomuk::Query::FileQuery::QueryFiles );
|
||||
fileQuery.setTerm(andTerm);
|
||||
|
||||
if ((m_locationBox->currentIndex() == 1) && m_directory.isValid()) {
|
||||
// "From Here" is selected as location filter
|
||||
Nepomuk::Query::FileQuery fileQuery;
|
||||
fileQuery.addIncludeFolder(m_directory);
|
||||
fileQuery.setTerm(andTerm);
|
||||
return fileQuery;
|
||||
}
|
||||
|
||||
Nepomuk::Query::Query query;
|
||||
query.setTerm(andTerm);
|
||||
return query;
|
||||
return fileQuery;
|
||||
}
|
||||
|
||||
#include "dolphinsearchoptionsconfigurator.moc"
|
||||
|
|
Loading…
Reference in a new issue