aboutsummaryrefslogtreecommitdiff
path: root/src/qt/qrcodedialog.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-02-15 14:47:08 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2012-02-15 17:22:00 +0100
commit303a47c09592c33aa84e2264e69643ef2570fa76 (patch)
treec24139670ca4af1fda9355dc7239cce4a0dfa852 /src/qt/qrcodedialog.cpp
parent1df182ff886817cc8b85990aff9b0e1102c97be7 (diff)
fix default suffixes in save dialog in GNOME, make it more clear that PNG is used (solves #833)
Diffstat (limited to 'src/qt/qrcodedialog.cpp')
-rw-r--r--src/qt/qrcodedialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qt/qrcodedialog.cpp b/src/qt/qrcodedialog.cpp
index 754e0bdcb2..82959831de 100644
--- a/src/qt/qrcodedialog.cpp
+++ b/src/qt/qrcodedialog.cpp
@@ -1,9 +1,9 @@
#include "qrcodedialog.h"
#include "ui_qrcodedialog.h"
+#include "guiutil.h"
+
#include <QPixmap>
#include <QUrl>
-#include <QFileDialog>
-#include <QDesktopServices>
#include <QDebug>
#include <qrencode.h>
@@ -98,7 +98,7 @@ void QRCodeDialog::on_lnMessage_textChanged(const QString &)
void QRCodeDialog::on_btnSaveAs_clicked()
{
- QString fn = QFileDialog::getSaveFileName(this, "Save Image...", QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation), "Images (*.png)");
+ QString fn = GUIUtil::getSaveFileName(this, tr("Save Image..."), QString(), tr("PNG Images (*.png)"));
if(!fn.isEmpty()) {
myImage.scaled(EXPORT_IMAGE_SIZE, EXPORT_IMAGE_SIZE).save(fn);
}