Qrcode: save to current directory

This commit is contained in:
tobtoht 2020-10-11 14:44:10 +02:00
parent 3f9080332b
commit 7822992837

View file

@ -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;
}