Skip to content

Commit a8d0c1e

Browse files
author
Philip Kaufmann
committed
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
1 parent 15b48ab commit a8d0c1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qt/bitcoingui.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ BitcoinGUI::BitcoinGUI(bool fIsTestnet, QWidget *parent) :
157157

158158
rpcConsole = new RPCConsole(this);
159159
connect(openRPCConsoleAction, SIGNAL(triggered()), rpcConsole, SLOT(show()));
160+
// prevents an oben debug window from becoming stuck/unusable on client shutdown
161+
connect(quitAction, SIGNAL(triggered()), rpcConsole, SLOT(hide()));
160162

161163
// Install event filter to be able to catch status tip events (QEvent::StatusTip)
162164
this->installEventFilter(this);

0 commit comments

Comments
 (0)