wizard: select first wallet, if it exists

This commit is contained in:
tobtoht 2023-09-08 16:57:17 +02:00
parent 9aee5fc834
commit 15360df99e
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -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() {