summaryrefslogtreecommitdiff
path: root/src/ui_table.py
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2019-05-03 19:27:54 +0200
committerPaweł Redman <pawel.redman@gmail.com>2019-05-03 19:27:54 +0200
commitca5b42577795d63e6e59bde31698edb5443b85e8 (patch)
treeb541b5b15f8aca89b3db1a8e868f4ca0045a6f9c /src/ui_table.py
parenta848a6de5a18533e622c127e7b1f9f0833c250e3 (diff)
Fix clearingHEADmaster
Diffstat (limited to 'src/ui_table.py')
-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):