From 2bb26bc63c125aee30baace5962156237fba1a42 Mon Sep 17 00:00:00 2001 From: Albert S Date: Sun, 26 Mar 2023 15:53:40 +0200 Subject: [PATCH] gui: Only enable 'Previews' tab if previews can be generated --- gui/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index a0e4cfe..d5a0010 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -877,6 +877,8 @@ void MainWindow::handleSearchResults(const QVector &results) makePreviews(1); } + ui->tabWidget->setTabEnabled(1, previewDirty); + QString statusText = "Results: " + QString::number(results.size()) + " files"; statusText += ", previewable: " + QString::number(this->previewCoordinator.previewableCount()); if(hasDeleted)