Skip to content

Commit

Permalink
Merge pull request #7852 from xoriole/fix/gui-torrent-files-clicked
Browse files Browse the repository at this point in the history
Fix application tester bug on clicking torrent files to select in case of large torrent
  • Loading branch information
xoriole authored Jan 25, 2024
2 parents ed1d03b + f404368 commit becc727
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 becc727

Please sign in to comment.