Skip to content

Commit 8c0e785

Browse files
committed
Bugfix
1 parent f138917 commit 8c0e785

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

games/unreal_tabs/manage_paks/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ def flags(self, index: QModelIndex) -> Qt.ItemFlag:
5757
| Qt.ItemFlag.ItemIsDropEnabled & Qt.ItemFlag.ItemIsEditable
5858
)
5959

60-
def columnCount(self, parent: QModelIndex) -> int:
60+
def columnCount(self, parent: QModelIndex = None) -> int:
6161
if parent is None:
6262
parent = QModelIndex()
6363
return len(PaksColumns)
6464

6565
def index(
66-
self, row: int, column: int, parent: QModelIndex
66+
self, row: int, column: int, parent: QModelIndex = None
6767
) -> QModelIndex:
6868
if parent is None:
6969
parent = QModelIndex()
@@ -86,7 +86,7 @@ def parent(self, child: QModelIndex | None = None) -> QModelIndex | QObject | No
8686
return super().parent()
8787
return QModelIndex()
8888

89-
def rowCount(self, parent: QModelIndex) -> int:
89+
def rowCount(self, parent: QModelIndex = None) -> int:
9090
if parent is None:
9191
parent = QModelIndex()
9292
return len(self.paks)

0 commit comments

Comments
 (0)