MainWindow: allow selecting all files for (un)signed txs

This commit is contained in:
tobtoht 2023-06-18 01:12:35 +02:00
parent 9e59d31373
commit 425468b2bb
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -1192,7 +1192,7 @@ void MainWindow::importOutputs() {
}
void MainWindow::loadUnsignedTx() {
QString fn = QFileDialog::getOpenFileName(this, "Select transaction to load", QDir::homePath(), "Transaction (*unsigned_monero_tx)");
QString fn = QFileDialog::getOpenFileName(this, "Select transaction to load", QDir::homePath(), "Transaction (*unsigned_monero_tx);;All Files (*)");
if (fn.isEmpty()) return;
UnsignedTransaction *tx = m_wallet->loadTxFile(fn);
auto err = m_wallet->errorString();
@ -1221,7 +1221,7 @@ void MainWindow::loadUnsignedTxFromClipboard() {
}
void MainWindow::loadSignedTx() {
QString fn = QFileDialog::getOpenFileName(this, "Select transaction to load", QDir::homePath(), "Transaction (*signed_monero_tx)");
QString fn = QFileDialog::getOpenFileName(this, "Select transaction to load", QDir::homePath(), "Transaction (*signed_monero_tx);;All Files (*)");
if (fn.isEmpty()) return;
PendingTransaction *tx = m_wallet->loadSignedTxFile(fn);
auto err = m_wallet->errorString();