From e565fd46151af223e23a5a527365ce0fc6a16166 Mon Sep 17 00:00:00 2001 From: dockes Date: Mon, 21 May 2007 14:26:19 +0000 Subject: [PATCH] reopen db for each search during query --- src/qtgui/rclmain_w.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qtgui/rclmain_w.cpp b/src/qtgui/rclmain_w.cpp index 55e1be9c..0f40d09f 100644 --- a/src/qtgui/rclmain_w.cpp +++ b/src/qtgui/rclmain_w.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: rclmain_w.cpp,v 1.25 2007-02-14 10:10:43 dockes Exp $ (C) 2005 J.F.Dockes"; +static char rcsid[] = "@(#$Id: rclmain_w.cpp,v 1.26 2007-05-21 14:26:19 dockes Exp $ (C) 2005 J.F.Dockes"; #endif /* * This program is free software; you can redistribute it and/or modify @@ -363,7 +363,8 @@ void RclMain::startSearch(RefCntr sdata) LOGDEB(("RclMain::startSearch\n")); // The db may have been closed at the end of indexing string reason; - if (!maybeOpenDb(reason)) { + // If indexing is being performed, we reopen the db at each query. + if (!maybeOpenDb(reason, indexingdone == 0)) { QMessageBox::critical(0, "Recoll", QString(reason.c_str())); exit(1); }