]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matita.ml
added icons to entries shown in cicbrowser so that directories are
[helm.git] / helm / matita / matita.ml
index c1225bae46f6b7787b58fe2a1e80a0b739314ddb..d0959e453b0342ed9ca49623c7514fb9f8819793 100644 (file)
@@ -169,9 +169,12 @@ let _ =
   if Filename.basename Sys.argv.(0) = "cicbrowser" then begin (* cicbrowser *)
     Helm_registry.set "matita.mode" "cicbrowser";
     let browser = MatitaMathView.cicBrowser () in
-    try
-      browser#load (`Uri Sys.argv.(1))
-    with Invalid_argument _ -> ()
+    let entry =
+      try
+        `Uri Sys.argv.(1)
+      with Invalid_argument _ -> `Dir "cic:/"
+    in
+    browser#load entry
   end else begin  (* matita *)
     Helm_registry.set "matita.mode" "matita";
     gui#main#mainWin#show ();