mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 00:16:31 +01:00
Metadata download dialog: Fix current cover not copyable to clipboard
This commit is contained in:
parent
34cbd4e099
commit
259596c473
1 changed files with 4 additions and 0 deletions
|
|
@ -828,6 +828,8 @@ def show_context_menu(self, point):
|
|||
def show_cover(self):
|
||||
idx = self.currentIndex()
|
||||
pmap = self.model().cover_pixmap(idx)
|
||||
if pmap is None and idx.row() == 0:
|
||||
pmap = self.model().cc
|
||||
if pmap is not None:
|
||||
from calibre.gui2.viewer.image_popup import ImageView
|
||||
d = ImageView(self, pmap, unicode(idx.data(Qt.DisplayRole).toString()), geom_name='metadata_download_cover_popup_geom')
|
||||
|
|
@ -836,6 +838,8 @@ def show_cover(self):
|
|||
def copy_cover(self):
|
||||
idx = self.currentIndex()
|
||||
pmap = self.model().cover_pixmap(idx)
|
||||
if pmap is None and idx.row() == 0:
|
||||
pmap = self.model().cc
|
||||
if pmap is not None:
|
||||
QApplication.clipboard().setPixmap(pmap)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue