From 241c3c40bec68fa6069f9f54dc77dc6639cea6ef Mon Sep 17 00:00:00 2001 From: "Albert S." Date: Thu, 23 May 2024 18:44:09 +0200 Subject: [PATCH] gui: Disable 'Delete path' button during indexing --- gui/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index b61ece3..98f1b30 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -303,6 +303,7 @@ void MainWindow::startIndexing() ui->txtPathScanAdd->setEnabled(false); ui->btnAddPath->setEnabled(false); ui->btnChoosePath->setEnabled(false); + ui->btnDeletePath->setEnabled(false); ui->txtSearch->setEnabled(false); ui->previewProcessBar->setValue(0); ui->previewProcessBar->setVisible(true); @@ -352,6 +353,7 @@ void MainWindow::finishIndexing() ui->txtPathScanAdd->setEnabled(true); ui->btnAddPath->setEnabled(true); ui->btnChoosePath->setEnabled(true); + ui->btnDeletePath->setEnabled(true); ui->txtSearch->setEnabled(true); if(result.erroredPaths > 0) {