From 2525decdbeeebc6a18506e14317cf4f1dbe60573 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sat, 10 Jul 2021 00:25:13 +0200 Subject: [PATCH] Disconnect wallet on close --- src/MainWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 8d5aa73..8e6fd3f 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -874,6 +874,10 @@ void MainWindow::closeEvent(QCloseEvent *event) { m_updateBytes.stop(); m_txTimer.stop(); + m_ctx->stopTimers(); + + // Wallet signal may fire after AppContext is gone, causing segv + m_ctx->wallet->disconnect(); this->saveGeo(); m_windowManager->closeWindow(this);