gui: MainWindow: handleSearchResults: Use PreviewGenerator::get

Этот коммит содержится в:
Albert S. 2022-04-24 12:28:34 +02:00
родитель 1536781bda
Коммит 59aa02f0cd

Просмотреть файл

@ -327,7 +327,7 @@ void MainWindow::handleSearchResults(const QVector<SearchResult> &results)
bool exists = pathInfo.exists(); bool exists = pathInfo.exists();
if(exists) if(exists)
{ {
if(result.fileData.absPath.endsWith(".pdf")) if(PreviewGenerator::get(pathInfo) != nullptr)
{ {
this->previewableSearchResults.append(result); this->previewableSearchResults.append(result);
} }