Commit c52f4ef5 authored by claes's avatar claes

Suppress template plc's in 'show plc'

parent b45afb61
......@@ -1479,6 +1479,8 @@ int XNav::show_plcpgm()
pwr_sClass_PlcThread *object_ptr;
pwr_tObjid thread_objid;
char namebuf[80];
pwr_tObjid parent;
pwr_tCid cid;
brow_pop();
brow_SetNodraw( brow->ctx);
......@@ -1495,6 +1497,18 @@ int XNav::show_plcpgm()
sts = gdh_GetClassList ( pwr_cClass_plc, &objid);
while ( ODD(sts))
{
// Don't display template plcpgm in class volumes
sts = gdh_GetParent( objid, &parent);
if ( ODD(sts)) {
sts = gdh_GetObjectClass( parent, &cid);
if ( EVEN(sts)) return sts;
if ( cid == pwr_eClass_ClassDef) {
sts = gdh_GetNextObject ( objid, &objid);
continue;
}
}
sts = gdh_ObjidToPointer( objid, (void **) &object_ptr);
if ( EVEN(sts)) return sts;
......
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