Skip to content

Commit

Permalink
Fix #2092919 [File "calibre\gui2\dialogs\match_books.py", line 173, i…
Browse files Browse the repository at this point in the history
…n resizeEvent TypeError: QTableView.setColumnWidth(): argument 2 has unexpected type 'float'](https://bugs.launchpad.net/calibre/+bug/2092919)
  • Loading branch information
kovidgoyal committed Jan 3, 2025
1 parent 68ca534 commit 3e1e806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calibre/gui2/dialogs/match_books.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def resizeEvent(self, *args):
# have a width. Assume 25. Not a problem because user-changed column
# widths will be remembered
w = self.books_table.width() - 25 - self.books_table.verticalHeader().width()
w /= self.books_table.columnCount()
w //= self.books_table.columnCount()
for c in range(0, self.books_table.columnCount()):
self.books_table.setColumnWidth(c, w)
self.save_state()
Expand Down

0 comments on commit 3e1e806

Please sign in to comment.