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

此提交包含在:
2022-06-04 22:00:58 +02:00
父節點 4187c3bfca
當前提交 8f69be229b

查看文件

@ -443,12 +443,15 @@ void MainWindow::handleSearchResults(const QVector<SearchResult> &results)
item->setText(3, this->locale().formattedDataSize(result.fileData.size));
bool exists = pathInfo.exists();
if(exists)
{
if(!pathInfo.suffix().contains("htm")) // hack until we can preview them properly...
{
if(PreviewGenerator::get(pathInfo) != nullptr)
{
this->previewableSearchResults.append(result);
}
}
}
else
{
hasDeleted = true;