]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/matitaGui.ml
Quit without saving dialog fixed
[helm.git] / matita / matita / matitaGui.ml
index c1e8e9fc57d19dd92e31ec1d6ab5decdd78f5f63..ee268e60add67ea6c06217317c37ebcefc340e90 100644 (file)
@@ -97,6 +97,8 @@ let interactive_uri_choice
       | uris -> return (Some (List.map NReference.reference_of_string uris)));
     connect_button dialog#uriChoiceAbortButton (fun _ -> return None);
     dialog#uriChoiceDialog#show ();
+    (* CSC: old Gtk2 code. Use #run instead. Look for similar code handling
+       other dialogs *)
     GtkThread.main ();
     (match !choices with 
     | None -> raise MatitaTypes.Cancel
@@ -929,7 +931,7 @@ class gui () =
              save_moo script#status;
              true
         | `NO -> true
-        | `CANCEL -> false
+        | `DELETE_EVENT -> false
       else 
        (save_moo script#status; true)