diff --git a/src/br/org/scadabr/view/component/AlarmListComponent.java b/src/br/org/scadabr/view/component/AlarmListComponent.java index 5ff5b27be5..f41c22b888 100644 --- a/src/br/org/scadabr/view/component/AlarmListComponent.java +++ b/src/br/org/scadabr/view/component/AlarmListComponent.java @@ -69,14 +69,20 @@ public String generateContent() { private void filter(List list, int alarmLevel) { + if (AlarmLevels.INFORMATION == alarmLevel) { + removeAlarmLevel(list, AlarmLevels.NONE); + } if (AlarmLevels.URGENT == alarmLevel) { + removeAlarmLevel(list, AlarmLevels.NONE); removeAlarmLevel(list, AlarmLevels.INFORMATION); } if (AlarmLevels.CRITICAL == alarmLevel) { + removeAlarmLevel(list, AlarmLevels.NONE); removeAlarmLevel(list, AlarmLevels.INFORMATION); removeAlarmLevel(list, AlarmLevels.URGENT); } if (AlarmLevels.LIFE_SAFETY == alarmLevel) { + removeAlarmLevel(list, AlarmLevels.NONE); removeAlarmLevel(list, AlarmLevels.INFORMATION); removeAlarmLevel(list, AlarmLevels.URGENT); removeAlarmLevel(list, AlarmLevels.CRITICAL);