gui: fix autofocus in CreateWalletActivity::askPassphrase()
This commit is contained in:
parent
539d9403af
commit
cad3ab5db8
2 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -182,6 +182,7 @@ CreateWalletActivity::~CreateWalletActivity()
|
|||
void CreateWalletActivity::askPassphrase()
|
||||
{
|
||||
m_passphrase_dialog = new AskPassphraseDialog(AskPassphraseDialog::Encrypt, m_parent_widget, &m_passphrase);
|
||||
m_passphrase_dialog->setWindowModality(Qt::ApplicationModal);
|
||||
m_passphrase_dialog->show();
|
||||
|
||||
connect(m_passphrase_dialog, &QObject::destroyed, [this] {
|
||||
|
|
Loading…
Reference in a new issue