fix #3663: 'copying' QR code does not save to file

This commit is contained in:
SomberNight 2018-01-08 02:28:13 +01:00
parent eaeac4ca51
commit 9d46703c6f
1 changed files with 1 additions and 2 deletions

View File

@ -113,8 +113,7 @@ class QRDialog(WindowModalDialog):
def copy_to_clipboard():
p = qscreen.grabWindow(qrw.winId())
p.save(filename, 'png')
QApplication.clipboard().setImage(QImage(filename))
QApplication.clipboard().setPixmap(p)
self.show_message(_("QR code copied to clipboard"))
b = QPushButton(_("Copy"))