From 9df8c2e629b494f1894e2de5567d894fa96f7228 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 2 Aug 2022 08:14:30 +0530 Subject: [PATCH] Fix #1710 (Fix for FTS re-index all formats of a book not working.) --- src/calibre/gui2/book_details.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/book_details.py b/src/calibre/gui2/book_details.py index bf95625fe9..d57926665a 100644 --- a/src/calibre/gui2/book_details.py +++ b/src/calibre/gui2/book_details.py @@ -899,7 +899,10 @@ class BookInfo(HTMLDisplay): def reindex_fmt(self, book_id, fmt): from calibre.gui2.ui import get_gui db = get_gui().current_db.new_api - db.reindex_fts_book(book_id, fmt) + if fmt: + db.reindex_fts_book(book_id, fmt) + else: + db.reindex_fts_book(book_id) # }}}