--- a/src/qtgui/rclmain_w.cpp
+++ b/src/qtgui/rclmain_w.cpp
@@ -423,7 +423,8 @@
 	    // 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 {