Hide UI immediately after leaving the main loop.
authorWladimir J. van der Laan <laanwj@gmail.com>
Sun, 6 May 2012 06:14:19 +0000 (08:14 +0200)
committerLuke Dashjr <luke-jr+git@utopios.org>
Sun, 6 May 2012 14:56:13 +0000 (14:56 +0000)
Prevents it from seeming to hang during shutdown if shutdown is triggered while the window is open.

src/qt/bitcoin.cpp

index 7c262e1..97a8f91 100644 (file)
@@ -281,6 +281,7 @@ int main(int argc, char *argv[])
 #endif
                 app.exec();
 
+                window.hide();
                 window.setClientModel(0);
                 window.setWalletModel(0);
                 guiref = 0;