Skip to content

Commit

Permalink
qt: Call noui_connect to prevent boost::signals2::no_slots_error in e…
Browse files Browse the repository at this point in the history
…arly calls to InitWarning
  • Loading branch information
promag committed Nov 22, 2018
1 parent 708cbb1 commit a0f8df3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/qt/bitcoin.cpp
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions src/qt/bitcoingui.cpp
Expand Up @@ -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>

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a0f8df3

Please sign in to comment.