mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
68ca534ed0
commit
3e1e806ad3
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user