mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 05:32:22 +02:00
gui: fix add .dat file extension automatically when exporting watchonly
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user