From 73bfeb98971f5a81c1b4e4ac058332ffff65f2fe Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Tue, 3 Oct 2017 13:46:32 +0200 Subject: [PATCH] Remove element not index. Now progress dialog is closed when we indexed all collections --- src/searchdialog/incompleteindexdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/searchdialog/incompleteindexdialog.cpp b/src/searchdialog/incompleteindexdialog.cpp index c50ed703e..653685be9 100644 --- a/src/searchdialog/incompleteindexdialog.cpp +++ b/src/searchdialog/incompleteindexdialog.cpp @@ -221,7 +221,7 @@ void IncompleteIndexDialog::slotCurrentlyIndexingCollectionChanged(qlonglong col { const int idx = mIndexingQueue.indexOf(colId); if (idx > -1) { - mIndexingQueue.removeAll(idx); + mIndexingQueue.removeAll(colId); mProgressDialog->setValue(mProgressDialog->maximum() - mIndexingQueue.size()); if (mIndexingQueue.isEmpty()) {