From 3e1e806ad3819b17c7e3d0e10d34ab0288b057c9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 3 Jan 2025 09:14:06 +0530 Subject: [PATCH] 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) --- src/calibre/gui2/dialogs/match_books.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/dialogs/match_books.py b/src/calibre/gui2/dialogs/match_books.py index a64d9368d3..beea89a6b6 100644 --- a/src/calibre/gui2/dialogs/match_books.py +++ b/src/calibre/gui2/dialogs/match_books.py @@ -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()