From 24626ceb0d8a24a3dd6d4bd333793e4144dd9c36 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Fri, 7 Apr 2023 10:08:30 +0100 Subject: [PATCH] Undo commit e11b8c8. book-details links should appear in the special window (no search links, etc) even if in the current library. The LibraryBroker deals with not opening the database twice. This might be worth a point release. See https://www.mobileread.com/forums/showthread.php?p=4312453#post4312453 and later. --- src/calibre/gui2/actions/show_book_details.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/calibre/gui2/actions/show_book_details.py b/src/calibre/gui2/actions/show_book_details.py index 00e993f0b0..164feb7958 100644 --- a/src/calibre/gui2/actions/show_book_details.py +++ b/src/calibre/gui2/actions/show_book_details.py @@ -28,8 +28,6 @@ class ShowBookDetailsAction(InterfaceAction): library_path = kwargs.get('library_path', None) book_id = kwargs.get('book_id', None) library_id = kwargs.get('library_id', None) - if library_path is not None and self.gui.library_broker.is_gui_library(library_path): - library_path = library_id = None query = kwargs.get('query', None) index = self.gui.library_view.currentIndex() if self.gui.current_view() is not self.gui.library_view and not library_path: