MainWindow: allow selecting all files on keyimage/outputs import

This commit is contained in:
tobtoht 2023-03-22 19:56:18 +01:00
parent 88d399c2ef
commit afda69e090
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View 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) {