# HG changeset patch # User Silverwing # Date 2020-06-21 13:22:28 # Node ID 2e3b9132fe02359a5d5d107069a243ed9980d910 # Parent 149d4f2755a24fbe12e5b89620d6433b6db59c6e fix: properly show up to 1000 disks with proper indices diff --git a/forms/mainwindow.py b/forms/mainwindow.py --- a/forms/mainwindow.py +++ b/forms/mainwindow.py @@ -51,6 +51,8 @@ class CustomTableModel(QtCore.QAbstractT def headerData(self, section, orientation, role=QtCore.Qt.DisplayRole): if orientation == QtCore.Qt.Horizontal and role == QtCore.Qt.DisplayRole: return QtCore.QVariant(self.headers[section]) + elif orientation == QtCore.Qt.Vertical and role == QtCore.Qt.DisplayRole: + return QtCore.QVariant(section) return super().headerData(section, orientation, role) def rowCount(self, parent=None): diff --git a/ui/format_dialog.ui b/ui/format_dialog.ui --- a/ui/format_dialog.ui +++ b/ui/format_dialog.ui @@ -32,7 +32,11 @@ - + + + 999 + +