Skip to content
Snippets Groups Projects
Commit 0ff60d3a authored by Anders H. Rebner's avatar Anders H. Rebner
Browse files

Autentiseringstavle og subtraktorkoder har minimum to koder

parent 54b37a35
No related branches found
No related tags found
1 merge request!67#101 & #121 kodetabell-innstillings-popup og db/DB->database i GUI
Pipeline #81565 failed
......@@ -221,10 +221,10 @@ class CodeTableBase(ModuleBase, QTableWidget, metaclass=Meta):
event.modifiers() == Qt.ControlModifier
and event.key() == Qt.Key_Underscore
):
# If at least one row (+ headline-row) exists and a row other than
# If at least two rows (+ headline-row) exists and a row other than
# headline-row is selected
row_index = self.currentRow()
if self.rowCount() > 2 and row_index != 0 and row_index != -1:
if self.rowCount() > 3 and row_index != 0 and row_index != -1:
self.remove_row(row_index)
else:
super().keyPressEvent(event)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment