Skip to content

Commit 3490974

Browse files
committed
minor fixes
1 parent 711ddca commit 3490974

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/UIHandling/aboutDialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def __init__(self, *args, obj=None, **kwargs):
1010
super().__init__(*args, **kwargs)
1111
self.setupUi(self)
1212

13-
self.labelVersion.setText(f"Version: 1.1.5")
13+
self.labelVersion.setText(f"Version: 1.1.6")
1414
self.labelPyQtVersion.setText(f"PyQt6: v{PYQT_VERSION_STR}")
1515
self.labelPyVersion.setText(f"Python: v{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}")
1616

app/UIHandling/mainWindow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,9 @@ def data(self, index, role=QtCore.Qt.ItemDataRole.DisplayRole):
535535

536536
if role == QtCore.Qt.ItemDataRole.DisplayRole:
537537
if col == 0:
538-
return str(record[0]) # UID
538+
return record[0] # UID
539539
elif col == 1:
540-
return str(record[1]) # TID
540+
return record[1] # TID
541541
elif col == 2:
542542
return record[2] # TName
543543
elif col == 3:
@@ -567,9 +567,9 @@ def sort(self, column: int, order: QtCore.Qt.SortOrder):
567567
def sort_key(row):
568568
# Customize based on column
569569
if column == 0: # U. ID
570-
return int(row[0])
570+
return int(row[0]) if row[0] else -1
571571
elif column == 1: # T. ID
572-
return int(row[1])
572+
return int(row[0]) if row[0] else -1
573573
elif column == 2: # TName
574574
return row[2] or ""
575575
elif column == 3: # Update/Version

0 commit comments

Comments
 (0)