X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fqt%2Fbitcoin.cpp;h=58070d4057b000d8b94f61c01c38f0d67d6416d7;hb=6ec9d30905e8df77e60d0195074920271abb977a;hp=c7f0092df97a9fd6f0403dccb504cbc8a40b7eb8;hpb=3374c3ef094b328e6c6957fdaf5a9abff0c53a33;p=novacoin.git diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index c7f0092..58070d4 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -123,6 +123,11 @@ void InitMessage(const std::string &message) } } +void QueueShutdown() +{ + QMetaObject::invokeMethod(QCoreApplication::instance(), "quit", Qt::QueuedConnection); +} + /* Translate string to current locale using Qt. */ @@ -287,8 +292,10 @@ int main(int argc, char *argv[]) #endif app.exec(); + window.hide(); guiref = 0; } + // Shutdown the core and it's threads, but don't exit Bitcoin-Qt here Shutdown(NULL); } else