From 78229928371d03c7a50e30ea60263b3bb752810e Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sun, 11 Oct 2020 14:44:10 +0200 Subject: [PATCH] Qrcode: save to current directory --- src/dialog/qrcodedialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialog/qrcodedialog.cpp b/src/dialog/qrcodedialog.cpp index 02742be..0046904 100644 --- a/src/dialog/qrcodedialog.cpp +++ b/src/dialog/qrcodedialog.cpp @@ -41,7 +41,7 @@ void QrCodeDialog::copyImage() { } void QrCodeDialog::saveImage() { - QString filename = QFileDialog::getSaveFileName(this, "Select where to save file", "qrcode.png"); + QString filename = QFileDialog::getSaveFileName(this, "Select where to save file", QDir::current().filePath("qrcode.png")); if (filename.isEmpty()) { return; }