Do only search for files by default.

svn path=/trunk/KDE/kdebase/apps/; revision=1147115
This commit is contained in:
Sebastian Trueg 2010-07-07 12:10:09 +00:00
parent 6170858f34
commit c5157d36ba

View file

@ -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"