Don't call exit() in Shutdown() for Bitcoin-Qt (fixes a tray-icon issue)
[novacoin.git] / src / qt / bitcoin.cpp
index b7c8a45..8dde8f3 100644 (file)
@@ -205,8 +205,10 @@ int main(int argc, char *argv[])
 
                 app.exec();
 
+                window.hide();
                 guiref = 0;
             }
+            // Shutdown the core and it's threads, but don't exit Bitcoin-Qt here
             Shutdown(NULL);
         }
         else