Commit 89e0bd08 authored by claes's avatar claes

Bugfix in compile from wtt menu with open plcprogram

parent 359d7601
......@@ -1995,7 +1995,12 @@ static void wtt_activate_compile( Widget w, Wtt *wtt, XmAnyCallbackStruct *data)
// Open a temporary write session
sts = ldh_OpenSession( &ldhses, wtt->volctx, ldh_eAccess_ReadWrite,
ldh_eUtility_Configurator);
if ( EVEN(sts)) return;
if ( EVEN(sts)) {
wtt->reset_cursor();
wow_DisplayError( wtt->toplevel, "Compile error", "Other session is open");
return;
}
ldh_AddThisSessionCallback( ldhses, (void *)wtt,
wtt_ldh_this_session_cb);
wtt->wnav->editmode = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment