File tree 1 file changed +3
-4
lines changed 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -399,10 +399,9 @@ void BitcoinGUI::createActions()
399
399
for (const std::pair<const std::string, bool >& i : m_wallet_controller->listWalletDir ()) {
400
400
const std::string& path = i.first ;
401
401
QString name = path.empty () ? QString (" [" +tr (" default wallet" )+" ]" ) : QString::fromStdString (path);
402
- // Menu items remove single &. Single & are shown when && is in
403
- // the string, but only the first occurrence. So replace only
404
- // the first & with &&.
405
- name.replace (name.indexOf (QChar (' &' )), 1 , QString (" &&" ));
402
+ // An single ampersand in the menu item's text sets a shortcut for this item.
403
+ // Single & are shown when && is in the string. So replace & with &&.
404
+ name.replace (QChar (' &' ), QString (" &&" ));
406
405
QAction* action = m_open_wallet_menu->addAction (name);
407
406
408
407
if (i.second ) {
You can’t perform that action at this time.
0 commit comments