Fix slowdown when loading big log files.

- updateFilterList was call repeatedly too many times
This commit is contained in:
mjuhanne
2019-08-12 01:33:10 +03:00
parent 428b19c5c4
commit 6272ba3911
+3
View File
@@ -432,6 +432,8 @@ void MainWindow::updateFilterList()
qDebug() << "updateFilterList called on MainWindow";
inhibitFilterUpdate = true;
ui->listFilters->clear();
if (filters->isEmpty()) return;
@@ -441,6 +443,7 @@ void MainWindow::updateFilterList()
{
QListWidgetItem *thisItem = FilterUtility::createCheckableFilterItem(filterIter.key(), filterIter.value(), ui->listFilters);
}
inhibitFilterUpdate = false;
}
void MainWindow::filterListItemChanged(QListWidgetItem *item)