Skip to content

Commit

Permalink
wizard: select first wallet, if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
tobtoht committed Sep 8, 2023
1 parent 9aee5fc commit 15360df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/wizard/PageOpenWallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ PageOpenWallet::PageOpenWallet(WalletKeysFilesModel *wallets, QWidget *parent)

void PageOpenWallet::initializePage() {
m_walletKeysFilesModel->refresh();

// Select the first wallet, if it exists
auto index = ui->walletTable->model()->index(0, 0);
if (index.isValid()) {
ui->walletTable->setCurrentIndex(index);
}
}

void PageOpenWallet::updatePath() {
Expand Down

0 comments on commit 15360df

Please sign in to comment.