mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
If a show-details link references the current library, use the current db instead of opening it again.
This commit is contained in:
parent
e16179c9da
commit
e11b8c8b46
@ -28,6 +28,8 @@ 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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user