--- a/src/qtgui/rclm_view.cpp
+++ b/src/qtgui/rclm_view.cpp
@@ -310,7 +310,9 @@
 	}
     }
 
-    bool enterHistory = false;
+    // Can't remember what enterHistory was actually for. Set it to
+    // true always for now
+    bool enterHistory = true;
     bool istempfile = false;
     
     LOGDEB("StartNativeViewer: groksipath " << groksipath << " wantsf " <<
@@ -451,8 +453,8 @@
 	stb->showMessage(msg, 10000);
     }
 
-    if (!enterHistory)
-	historyEnterDoc(g_dynconf, doc.meta[Rcl::Doc::keyudi]);
+    if (enterHistory)
+	historyEnterDoc(rcldb, g_dynconf, doc);
     
     // Do the zeitgeist thing
     zg_send_event(ZGSEND_OPEN, doc);