summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Vanini <silhusk@gmail.com>2016-08-11 12:51:36 (GMT)
committerCarlo Vanini <silhusk@gmail.com>2016-08-16 19:50:59 (GMT)
commit6f130ef3db5ae31cd3a739762cdc68d3d299d5d0 (patch)
treea0166824b84d8fe2f9c51316d4c4817fdcdcd6bf
parentd109c90d9deb6ff7f2e18f1244801da098916d4f (diff)
reopen xapian index after update
If it is not re-opened the search will continue to use the outdated index and will always return an empty list. For instance, see https://bugs.kde.org/show_bug.cgi?id=362047 REVIEW: 128657
-rw-r--r--src/backend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend.cpp b/src/backend.cpp
index e01c141..3a5d137 100644
--- a/src/backend.cpp
+++ b/src/backend.cpp
@@ -1489,6 +1489,7 @@ void Backend::emitXapianUpdateFinished()
QLatin1String("org.debian.AptXapianIndex"),
QLatin1String("UpdateFinished"),
this, SLOT(xapianUpdateFinished(bool)));
+ openXapianIndex();
emit xapianUpdateFinished();
}