Commit 7a1eb52e authored by Claes Sjofors's avatar Claes Sjofors

Plc editor bugfix, CurrentData and CurrentIndex caused an event loop when name was changed

parent 13af4e8e
......@@ -2059,11 +2059,13 @@ pwr_tStatus WFoe::ldh_this_session_cb( void *ctx, ldh_sEvent *event)
WFoe *foe = (WFoe *) ctx;
vldh_t_node node;
int sts;
ldh_sEvent *next;
if ( !foe->ldh_cb_enabled)
return 1;
while (event) {
next = event->nep;
switch (event->Event) {
case ldh_eEvent_AttributeModified:
case ldh_eEvent_ObjectRenamed:
......@@ -2077,7 +2079,7 @@ pwr_tStatus WFoe::ldh_this_session_cb( void *ctx, ldh_sEvent *event)
default:
break;
}
event = event->nep;
event = next;
}
return 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