Skip to content

Commit

Permalink
Fix bug on clicking torrent files to select incase of large torrent
Browse files Browse the repository at this point in the history
  • Loading branch information
xoriole committed Jan 25, 2024
1 parent 60d66f3 commit f404368
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def __init__(self):
if tree_view.rowCount() == 0:
exit_script()
item = tree_view.item(randint(0, tree_view.rowCount() - 1), 0)
if not item:
exit_script()
check_state = Qt.Checked if item.checkState() == Qt.Unchecked else Qt.Unchecked
item.setCheckState(check_state)
QMetaObject.invokeMethod(tree_view, "itemClicked", Q_ARG(QTableWidgetItem, item))
Expand Down

0 comments on commit f404368

Please sign in to comment.