gui: mainwindow: Exclude HTML files from previews until we can do it properly

This commit is contained in:
Albert S. 2022-06-04 22:00:58 +02:00
부모 4187c3bfca
커밋 8f69be229b
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@ -444,9 +444,12 @@ void MainWindow::handleSearchResults(const QVector<SearchResult> &results)
bool exists = pathInfo.exists();
if(exists)
{
if(PreviewGenerator::get(pathInfo) != nullptr)
if(!pathInfo.suffix().contains("htm")) // hack until we can preview them properly...
{
this->previewableSearchResults.append(result);
if(PreviewGenerator::get(pathInfo) != nullptr)
{
this->previewableSearchResults.append(result);
}
}
}
else