diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index e3e106a..f23828f 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -198,7 +198,14 @@ void MainWindow::connectSignals() connect(ui->btnSaveSettings, &QPushButton::clicked, this, &MainWindow::saveSettings); connect(ui->btnOpenFailed, &QPushButton::clicked, this, &MainWindow::exportFailedPaths); connect( - ui->comboPreviewFiles, qOverload(&QComboBox::currentIndexChanged), this, [&]() { makePreviews(1); }, + ui->comboPreviewFiles, qOverload(&QComboBox::currentIndexChanged), this, + [&]() + { + if(this->previewTabActive()) + { + makePreviews(1); + } + }, Qt::QueuedConnection); connect(&ipcPreviewClient, &IPCPreviewClient::previewReceived, this, &MainWindow::previewReceived, Qt::QueuedConnection);