Error message when pasting with no img in the clipboard

This commit is contained in:
Kovid Goyal 2013-12-04 23:33:21 +05:30
parent 5fa92b0f42
commit 6c45af8558

View File

@ -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()