]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/matitaGui.ml
Avoid race conditions (deadlocks)
[helm.git] / matita / matita / matitaGui.ml
index 7e2b0401bbc41659bc60e8a9f0e1c4735efa6450..2a1381e3ddd4d8c96625fc95a1fc509ecb5f1ef6 100644 (file)
@@ -558,9 +558,7 @@ class gui () =
        let source_view = (s ())#source_view in
         main#buttonsToolbar#misc#set_sensitive true;
         main#scriptMenu#misc#set_sensitive true;
-        source_view#set_editable true;
-        (*The next line seems sufficient to avoid some unknown race condition *)
-        GtkThread.sync (fun () -> ()) ()
+        source_view#set_editable true
       in
       let worker_thread = ref None in
       let notify_exn (source_view : GSourceView3.source_view) exn =