From 59aa02f0cd4cd39c6ba54337efb016f6104f2aed Mon Sep 17 00:00:00 2001 From: Albert S Date: Sun, 24 Apr 2022 12:28:34 +0200 Subject: [PATCH] gui: MainWindow: handleSearchResults: Use PreviewGenerator::get --- gui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 2f937b9..d7a71ad 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -327,7 +327,7 @@ void MainWindow::handleSearchResults(const QVector &results) bool exists = pathInfo.exists(); if(exists) { - if(result.fileData.absPath.endsWith(".pdf")) + if(PreviewGenerator::get(pathInfo) != nullptr) { this->previewableSearchResults.append(result); }