From 15360df99eedd356027243d270d7c572cb4718e4 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Fri, 8 Sep 2023 16:57:17 +0200 Subject: [PATCH] wizard: select first wallet, if it exists --- src/wizard/PageOpenWallet.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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() { -- 2.52.0