mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
6bf57f68a5
commit
d042ae6b74
@ -705,8 +705,15 @@ class CoversWidget(QWidget): # {{{
|
||||
self.abort.set()
|
||||
|
||||
def cover_pixmap(self):
|
||||
return self.covers_view.model().cover_pixmap(
|
||||
self.covers_view.currentIndex())
|
||||
idx = None
|
||||
for i in self.covers_view.selectionModel().selectedIndexes():
|
||||
if i.isValid():
|
||||
idx = i
|
||||
break
|
||||
if idx is None:
|
||||
idx = self.covers_view.currentIndex()
|
||||
return self.covers_view.model().cover_pixmap(idx)
|
||||
|
||||
|
||||
# }}}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user