Commit e6502c4b authored by claes's avatar claes

Avoid segfault at termination

parent d2ec8870
......@@ -292,7 +292,7 @@ void Wtt::menu_setup()
XtSetValues( menu_utilities_w, sensitive, 1);
XtSetValues( menu_openplc_w, sensitive, 1);
XtSetValues( menu_compile_w, sensitive, 1);
if ( ldh_VolRepType( ldhses) == ldh_eVolRep_Dbs)
if ( ldhses && ldh_VolRepType( ldhses) == ldh_eVolRep_Dbs)
XtSetValues( menu_createload_w, nosensitive, 1);
else
XtSetValues( menu_createload_w, sensitive, 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