From 2c0b8363666d83ed09546bdf6cdd83e7de7eb317 Mon Sep 17 00:00:00 2001 From: gg Date: Mon, 19 Jan 2026 11:32:47 -0500 Subject: [PATCH] fix crash when closing a wallet as another opens --- src/model/WalletKeysFilesModel.cpp | 2 +- src/utils/nodes.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model/WalletKeysFilesModel.cpp b/src/model/WalletKeysFilesModel.cpp index 72ea124b..f0d0422f 100644 --- a/src/model/WalletKeysFilesModel.cpp +++ b/src/model/WalletKeysFilesModel.cpp @@ -47,7 +47,7 @@ void WalletKeysFilesModel::clear() { void WalletKeysFilesModel::refresh() { this->clear(); this->findWallets(); - endResetModel(); + } void WalletKeysFilesModel::updateDirectories() { diff --git a/src/utils/nodes.cpp b/src/utils/nodes.cpp index 5ca8616b..4f33b4e7 100644 --- a/src/utils/nodes.cpp +++ b/src/utils/nodes.cpp @@ -659,7 +659,7 @@ void Nodes::onConnectionStatusChanged(int status) { qInfo() << "Nodes: Wallet disconnected unexpectedly, triggering auto-connect to new node."; // Fix J: Mark connection as inactive so autoConnect treats it as a failure, not a transient disconnect m_connection.isActive = false; - QTimer::singleShot(1000, [this]{ + QTimer::singleShot(1000, this, [this]{ this->autoConnect(false); }); } -- 2.52.0