Skip to content

Commit

Permalink
Fixed refactor issue with alert dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
reilleya committed Apr 30, 2019
1 parent f4d46b0 commit 1b5d694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uilib/simulationManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(self):
def displayAlerts(self, simRes):
self.ui.tableWidgetAlerts.setRowCount(0) # Clear the table
if len(simRes.alerts) > 0:
self.tableWidgetAlerts.setRowCount(len(simRes.alerts))
self.ui.tableWidgetAlerts.setRowCount(len(simRes.alerts))
for row, alert in enumerate(simRes.alerts):
self.ui.tableWidgetAlerts.setItem(row, 0, QTableWidgetItem(alertLevelNames[alert.level]))
self.ui.tableWidgetAlerts.setItem(row, 1, QTableWidgetItem(alertTypeNames[alert.type]))
Expand Down

0 comments on commit 1b5d694

Please sign in to comment.