From 3435e1388d6e2927b800dd060bc3e781ed2d84ea Mon Sep 17 00:00:00 2001 From: dockes Date: Thu, 13 Aug 2009 06:28:14 +0000 Subject: [PATCH] Make sure db is open at all times (caused problems when sorting query started from the command line) --- src/qtgui/rclmain_w.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qtgui/rclmain_w.cpp b/src/qtgui/rclmain_w.cpp index 8e4cc9d8..0119ce89 100644 --- a/src/qtgui/rclmain_w.cpp +++ b/src/qtgui/rclmain_w.cpp @@ -423,7 +423,8 @@ void RclMain::periodic100() // looking at them either). Fixing this would be // relatively complicated (keep an open/close gen number // and check this / restart query in DocSeqDb() ?) - rcldb->close(); + string reason; + maybeOpenDb(reason, 1); periodictimer->changeInterval(1000); } } else {