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 @@ -520,10 +520,9 @@ void BitcoinGUI::createActions()
520
520
for (const std::pair<const std::string, bool >& i : m_wallet_controller->listWalletDir ()) {
521
521
const std::string& path = i.first ;
522
522
QString name = path.empty () ? QString (" [" +tr (" default wallet" )+" ]" ) : QString::fromStdString (path);
523
- // Menu items remove single &. Single & are shown when && is in
524
- // the string, but only the first occurrence. So replace only
525
- // the first & with &&.
526
- name.replace (name.indexOf (QChar (' &' )), 1 , QString (" &&" ));
523
+ // An single ampersand in the menu item's text sets a shortcut for this item.
524
+ // Single & are shown when && is in the string. So replace & with &&.
525
+ name.replace (QChar (' &' ), QString (" &&" ));
527
526
QAction* action = m_open_wallet_menu->addAction (name);
528
527
529
528
if (i.second ) {
You can’t perform that action at this time.
0 commit comments