From 6ed7e05e20da874fe13e4ff74b7a534ca1b2b141 Mon Sep 17 00:00:00 2001 From: Pol Espinasa Date: Wed, 5 Aug 2026 10:03:54 +0200 Subject: [PATCH] gui: fix add .dat file extension automatically when exporting watchonly --- src/qt/bitcoingui.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 98d9d21bfd2..5c587e3cc67 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -529,7 +529,11 @@ void BitcoinGUI::createActions() connect(m_mask_values_action, &QAction::toggled, this, &BitcoinGUI::setPrivacy); connect(m_mask_values_action, &QAction::toggled, this, &BitcoinGUI::enableHistoryAction); GUIUtil::ExceptionSafeConnect(m_export_watchonly_action, &QAction::triggered, [this](bool) { - QString destination = GUIUtil::getSaveFileName(this, tr("Save Watch-only Wallet Export"), QString(), QString(), nullptr); + QString destination = GUIUtil::getSaveFileName(this, + tr("Save Watch-only Wallet Export"), QString(), + //: Name of the wallet data file format. + tr("Wallet Data") + QLatin1String(" (*.dat)"), nullptr); + if (destination.isEmpty()) return; WalletModel* model = walletFrame->currentWalletModel(); if (!Assume(model)) return;