summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui_table.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui_table.py b/src/ui_table.py
index db69beb..8286f5e 100644
--- a/src/ui_table.py
+++ b/src/ui_table.py
@@ -249,9 +249,10 @@ class SystemTable(QTableWidget):
def clear(self):
ElementEditorWindow.close_all()
- system.elements = list()
+ self.system.elements = list()
self.rows = list()
self.clearContents()
+ self.setRowCount(0)
GUI.do_update()
def renumber_rows(self):