diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 98f1b30..de9c73a 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -319,7 +319,9 @@ void MainWindow::startIndexing() } this->indexer->setTargetPaths(paths); QString ignorePatterns = ui->txtIgnorePatterns->text(); - this->indexer->setIgnorePattern(ignorePatterns.split(";")); + QStringList patterns = ignorePatterns.split(";"); + patterns.removeAll(QString{}); + this->indexer->setIgnorePattern(patterns); FileSaverOptions options; options.fillExistingContentless =