Bugfix: Fix various places where Bitcoin-Qt was being shutdown improperly
[novacoin.git] / src / qt / bitcoin.cpp
index 8dde8f3..6986d39 100644 (file)
@@ -112,6 +112,11 @@ void InitMessage(const std::string &message)
     }
 }
 
+void QueueShutdown()
+{
+    QMetaObject::invokeMethod(QCoreApplication::instance(), "quit", Qt::QueuedConnection);
+}
+
 /*
    Translate string to current locale using Qt.
  */