fix #3663: 'copying' QR code does not save to file
This commit is contained in:
parent
eaeac4ca51
commit
9d46703c6f
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue