]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
wizard: select first wallet, if it exists
authortobtoht <tob@featherwallet.org>
Fri, 8 Sep 2023 14:57:17 +0000 (16:57 +0200)
committertobtoht <tob@featherwallet.org>
Fri, 8 Sep 2023 14:57:17 +0000 (16:57 +0200)
src/wizard/PageOpenWallet.cpp

index dbb82fb5c172f281379863575f74af34d242eff4..e19986094b735d446359051e6b23d5b6be1b224e 100644 (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() {