]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
MainWindow: allow selecting all files on keyimage/outputs import
authortobtoht <tob@featherwallet.org>
Wed, 22 Mar 2023 18:56:18 +0000 (19:56 +0100)
committertobtoht <tob@featherwallet.org>
Wed, 22 Mar 2023 18:56:18 +0000 (19:56 +0100)
src/MainWindow.cpp

index 64c9dfa729c5a309b6caf5db0871fc371ce6ce11..4ae10ce6e6922a000383624ed35ef235e71a2a2b 100644 (file)
@@ -1156,7 +1156,7 @@ void MainWindow::exportKeyImages() {
 }
 
 void MainWindow::importKeyImages() {
-    QString fn = QFileDialog::getOpenFileName(this, "Import key image file", QDir::homePath(), "Key Images (*_keyImages)");
+    QString fn = QFileDialog::getOpenFileName(this, "Import key image file", QDir::homePath(), "Key Images (*_keyImages);;All Files (*)");
     if (fn.isEmpty()) return;
     bool r = m_wallet->importKeyImages(fn);
     if (!r) {
@@ -1180,7 +1180,7 @@ void MainWindow::exportOutputs() {
 }
 
 void MainWindow::importOutputs() {
-    QString fn = QFileDialog::getOpenFileName(this, "Import outputs file", QDir::homePath(), "Outputs (*_outputs)");
+    QString fn = QFileDialog::getOpenFileName(this, "Import outputs file", QDir::homePath(), "Outputs (*_outputs);;All Files (*)");
     if (fn.isEmpty()) return;
     bool r = m_wallet->importOutputs(fn);
     if (!r) {