commit 9d46703c6f2e446d960022064b99d029bfe43a8c
parent eaeac4ca51076ca847fc085d7d4a93bc39050773
Author: SomberNight <somber.night@protonmail.com>
Date: Mon, 8 Jan 2018 02:28:13 +0100
fix #3663: 'copying' QR code does not save to file
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/gui/qt/qrcodewidget.py b/gui/qt/qrcodewidget.py
@@ -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"))