Merge pull request 'Qrcode: save to current directory' (#37) from tobtoht/feather:qrcode_path into master

Reviewed-on: https://git.wownero.com/feather/feather/pulls/37
This commit is contained in:
dsc 2020-10-11 14:19:09 +00:00
commit ad7b278508

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