shared/gui: Don't consider non-content search results for previews
Not entirely ideal, since we may want to search for 'cake', and look at a preview for 'cake.txt' even if there is no 'cake' inside. But this will do for now
Este cometimento está contido em:
@ -489,6 +489,11 @@ void MainWindow::handleSearchResults(const QVector<SearchResult> &results)
|
||||
bool exists = pathInfo.exists();
|
||||
if(exists)
|
||||
{
|
||||
if(!result.wasContentSearch)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if(!pathInfo.suffix().contains("htm")) // hack until we can preview them properly...
|
||||
{
|
||||
if(PreviewGenerator::get(pathInfo) != nullptr)
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador