diff options
author | Jon Atack <jon@atack.com> | 2019-09-07 12:07:54 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2019-09-09 11:04:32 +0200 |
commit | cad3ab5db835e1d0c44c6a5fc0e4b2d1661dcd5c (patch) | |
tree | 6dcacc47bdae56fb8f7f75a6d88b07a22e1196d7 /src/qt/bitcoingui.cpp | |
parent | 539d9403af956c76ae0149a58c07c71a6b58ac69 (diff) |
gui: fix autofocus in CreateWalletActivity::askPassphrase()
Diffstat (limited to 'src/qt/bitcoingui.cpp')
-rw-r--r-- | src/qt/bitcoingui.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index c672171cfb..7671fde705 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -375,7 +375,9 @@ void BitcoinGUI::createActions() for (const std::pair<const std::string, bool>& i : m_wallet_controller->listWalletDir()) { const std::string& path = i.first; QString name = path.empty() ? QString("["+tr("default wallet")+"]") : QString::fromStdString(path); - // Menu items remove single &. Single & are shown when && is in the string, but only the first occurrence. So replace only the first & with && + // Menu items remove single &. Single & are shown when && is in + // the string, but only the first occurrence. So replace only + // the first & with &&. name.replace(name.indexOf(QChar('&')), 1, QString("&&")); QAction* action = m_open_wallet_menu->addAction(name); |