mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
8aa7031c9e
commit
1c54f129a7
@ -361,13 +361,14 @@ class BooksModel(QAbstractTableModel): # {{{
|
|||||||
self.cover_cache.set_cache(ids)
|
self.cover_cache.set_cache(ids)
|
||||||
|
|
||||||
def current_changed(self, current, previous, emit_signal=True):
|
def current_changed(self, current, previous, emit_signal=True):
|
||||||
idx = current.row()
|
if current.isValid():
|
||||||
self.set_cache(idx)
|
idx = current.row()
|
||||||
data = self.get_book_display_info(idx)
|
self.set_cache(idx)
|
||||||
if emit_signal:
|
data = self.get_book_display_info(idx)
|
||||||
self.new_bookdisplay_data.emit(data)
|
if emit_signal:
|
||||||
else:
|
self.new_bookdisplay_data.emit(data)
|
||||||
return data
|
else:
|
||||||
|
return data
|
||||||
|
|
||||||
def get_book_info(self, index):
|
def get_book_info(self, index):
|
||||||
if isinstance(index, int):
|
if isinstance(index, int):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user