diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2018-11-22 17:40:41 +0000 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2018-11-22 17:41:01 +0000 |
commit | a0f8df365d46d5ef1a397c755e3366899d759efc (patch) | |
tree | 983d24ba7f619806e8f4f298127ea719c7290a9c /src/qt | |
parent | 708cbb172dbf61dbb14671ffd98be3782cd7cd42 (diff) | |
download | bitcoin-a0f8df365d46d5ef1a397c755e3366899d759efc.tar.xz |
qt: Call noui_connect to prevent boost::signals2::no_slots_error in early calls to InitWarning
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/bitcoin.cpp | 3 | ||||
-rw-r--r-- | src/qt/bitcoingui.cpp | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index de236a016f..ab8b7a1792 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -561,6 +561,9 @@ int main(int argc, char *argv[]) #endif SetupEnvironment(); + // Connect bitcoind signal handlers + noui_connect(); + std::unique_ptr<interfaces::Node> node = interfaces::MakeNode(); // Do not refer to data directory yet, this can be overridden by Intro::pickDataDirectory diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index ef82351551..859d207d75 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -31,7 +31,6 @@ #include <chainparams.h> #include <interfaces/handler.h> #include <interfaces/node.h> -#include <noui.h> #include <ui_interface.h> #include <util/system.h> @@ -1226,9 +1225,6 @@ void BitcoinGUI::showModalOverlay() static bool ThreadSafeMessageBox(BitcoinGUI* gui, const std::string& message, const std::string& caption, unsigned int style) { - // Redundantly log and print message in non-gui fashion - noui_ThreadSafeMessageBox(message, caption, style); - bool modal = (style & CClientUIInterface::MODAL); // The SECURE flag has no effect in the Qt GUI. // bool secure = (style & CClientUIInterface::SECURE); |