mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Error message when pasting with no img in the clipboard
This commit is contained in:
parent
5fa92b0f42
commit
6c45af8558
@ -186,6 +186,9 @@ class Canvas(QWidget):
|
||||
img = QImage(md.imageData())
|
||||
if not img.isNull():
|
||||
self.undo_stack.push(Replace(img, _('Paste image'), self))
|
||||
else:
|
||||
error_dialog(self, _('No image'), _(
|
||||
'No image available in the clipboard'), show=True)
|
||||
|
||||
def break_cycles(self):
|
||||
self.undo_stack.clear()
|
||||
|
Loading…
x
Reference in New Issue
Block a user