From 4e1ffda0ae2a135ae1c3b00581e3234e846f9902 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Sat, 5 Oct 2013 13:15:50 +0200 Subject: [PATCH] Bitcoin-Qt: prevent stuck/unusable debug window on exit - when closing the client with an open debug window, that window could become stuck/unsuable (it was still shown wherea the main window was hidden already) - fix this by hiding the debug window, when quitting the the client Rebased-from: 3f8241c65539ceae7dc858f6f85acf3c2c58253b 0.8.x --- src/qt/bitcoingui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 4eae4b130..fc8b9afc5 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -143,6 +143,8 @@ BitcoinGUI::BitcoinGUI(QWidget *parent) : rpcConsole = new RPCConsole(this); connect(openRPCConsoleAction, SIGNAL(triggered()), rpcConsole, SLOT(show())); + // prevents an oben debug window from becoming stuck/unusable on client shutdown + connect(quitAction, SIGNAL(triggered()), rpcConsole, SLOT(hide())); // Install event filter to be able to catch status tip events (QEvent::StatusTip) this->installEventFilter(this);