Commit f01be55f authored by Claes Sjofors's avatar Claes Sjofors

Profibus configurator in xtt, bugfix in errorhandling for empty gsd-file (refs #112)

parent 3a108f36
......@@ -58,9 +58,11 @@
static pwr_tStatus ShowConfiguration( xmenu_sMenuCall *ip)
{
xtt_slave_sCtx *ctx;
pwr_tStatus sts;
int edit_mode = 0;
xtt_pb_dp_slave_create_ctx( ip->Pointed, ip->EditorContext, &ctx);
sts = xtt_pb_dp_slave_create_ctx( ip->Pointed, ip->EditorContext, &ctx);
if ( EVEN(sts)) return sts;
ctx->attr = new GsdAttrGtk( CoXHelpGtk::get_widget(), ctx, 0, ctx->gsd, edit_mode);
ctx->attr->close_cb = xtt_pb_dp_slave_close_cb;
......
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