X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FgTopLevel%2FgTopLevel.ml;h=d71162d1e5b3b058e89519444f8a930e7938a299;hb=eac698cf60e63383781fac2810981dface465216;hp=5e6b181629204859824440fcdd40a261bf645575;hpb=9db3b8bbda8724f2b0fca7e84cecb68a5490c369;p=helm.git diff --git a/helm/gTopLevel/gTopLevel.ml b/helm/gTopLevel/gTopLevel.ml index 5e6b18162..d71162d1e 100644 --- a/helm/gTopLevel/gTopLevel.ml +++ b/helm/gTopLevel/gTopLevel.ml @@ -2776,8 +2776,21 @@ class rendering_window output (notebook : notebook) = ~callback: (function _ -> ApplyStylesheets.reload_stylesheets () ; - refresh_proof output ; - refresh_goals notebook + if !ProofEngine.proof <> None then + try + refresh_goals notebook ; + refresh_proof output + with + InvokeTactics.RefreshSequentException e -> + output_html (outputhtml ()) + ("

An error occurred while refreshing the " ^ + "sequent: " ^ Printexc.to_string e ^ "

") ; + (*notebook#remove_all_pages ~skip_switch_page_event:false ;*) + notebook#set_empty_page + | InvokeTactics.RefreshProofException e -> + output_html (outputhtml ()) + ("

An error occurred while refreshing the proof: " ^ Printexc.to_string e ^ "

") ; + output#unload ) in (* accel group *) let _ = window#add_accel_group accel_group in