From: tobtoht Date: Fri, 8 Sep 2023 14:57:17 +0000 (+0200) Subject: wizard: select first wallet, if it exists X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=15360df99eedd356027243d270d7c572cb4718e4;p=gamesguru%2Ffeather.git wizard: select first wallet, if it exists --- diff --git a/src/wizard/PageOpenWallet.cpp b/src/wizard/PageOpenWallet.cpp index dbb82fb5..e1998609 100644 --- a/src/wizard/PageOpenWallet.cpp +++ b/src/wizard/PageOpenWallet.cpp @@ -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() {