Skip to content

Commit cad3ab5

Browse files
committed
gui: fix autofocus in CreateWalletActivity::askPassphrase()
1 parent 539d940 commit cad3ab5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/qt/bitcoingui.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,9 @@ void BitcoinGUI::createActions()
375375
for (const std::pair<const std::string, bool>& i : m_wallet_controller->listWalletDir()) {
376376
const std::string& path = i.first;
377377
QString name = path.empty() ? QString("["+tr("default wallet")+"]") : QString::fromStdString(path);
378-
// Menu items remove single &. Single & are shown when && is in the string, but only the first occurrence. So replace only the first & with &&
378+
// Menu items remove single &. Single & are shown when && is in
379+
// the string, but only the first occurrence. So replace only
380+
// the first & with &&.
379381
name.replace(name.indexOf(QChar('&')), 1, QString("&&"));
380382
QAction* action = m_open_wallet_menu->addAction(name);
381383

src/qt/walletcontroller.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ CreateWalletActivity::~CreateWalletActivity()
182182
void CreateWalletActivity::askPassphrase()
183183
{
184184
m_passphrase_dialog = new AskPassphraseDialog(AskPassphraseDialog::Encrypt, m_parent_widget, &m_passphrase);
185+
m_passphrase_dialog->setWindowModality(Qt::ApplicationModal);
185186
m_passphrase_dialog->show();
186187

187188
connect(m_passphrase_dialog, &QObject::destroyed, [this] {

0 commit comments

Comments
 (0)