Fix #2092919 [File "calibre\gui2\dialogs\match_books.py", line 173, in resizeEvent TypeError: QTableView.setColumnWidth(): argument 2 has unexpected type 'float'](https://bugs.launchpad.net/calibre/+bug/2092919)

This commit is contained in:
Kovid Goyal 2025-01-03 09:14:06 +05:30
parent 68ca534ed0
commit 3e1e806ad3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -168,7 +168,7 @@ class MatchBooks(QDialog, Ui_MatchBooks):
# 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()