Skip to content

Commit e204d50

Browse files
authored
Merge pull request #3406 from ControlSystemStudio/CSSTUDIO-3164
CSSTUDIO-3164 Bugfix: reset 'pv_value' when the PV name changes.
2 parents 8ba0923 + 5f5b29d commit e204d50

File tree

1 file changed

+1
-0
lines changed
  • app/display/model/src/main/java/org/csstudio/display/builder/model/widgets

1 file changed

+1
-0
lines changed

app/display/model/src/main/java/org/csstudio/display/builder/model/widgets/PVWidget.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ protected void defineProperties (final List<WidgetProperty<?>> properties )
8282
{
8383
super.defineProperties(properties);
8484
properties.add(pv_name = propPVName.createProperty(this, ""));
85+
pv_name.addPropertyListener((property, oldValue, newValue) -> pv_value.setValue(null));
8586
properties.add(pv_value = runtimePropPVValue.createProperty(this, null));
8687
properties.add(alarm_border = propBorderAlarmSensitive.createProperty(this, true));
8788
}

0 commit comments

Comments
 (0)