Skip to content

Commit a0f8df3

Browse files
committed
qt: Call noui_connect to prevent boost::signals2::no_slots_error in early calls to InitWarning
1 parent 708cbb1 commit a0f8df3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/qt/bitcoin.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,9 @@ int main(int argc, char *argv[])
561561
#endif
562562
SetupEnvironment();
563563

564+
// Connect bitcoind signal handlers
565+
noui_connect();
566+
564567
std::unique_ptr<interfaces::Node> node = interfaces::MakeNode();
565568

566569
// Do not refer to data directory yet, this can be overridden by Intro::pickDataDirectory

src/qt/bitcoingui.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#include <chainparams.h>
3232
#include <interfaces/handler.h>
3333
#include <interfaces/node.h>
34-
#include <noui.h>
3534
#include <ui_interface.h>
3635
#include <util/system.h>
3736

@@ -1226,9 +1225,6 @@ void BitcoinGUI::showModalOverlay()
12261225

12271226
static bool ThreadSafeMessageBox(BitcoinGUI* gui, const std::string& message, const std::string& caption, unsigned int style)
12281227
{
1229-
// Redundantly log and print message in non-gui fashion
1230-
noui_ThreadSafeMessageBox(message, caption, style);
1231-
12321228
bool modal = (style & CClientUIInterface::MODAL);
12331229
// The SECURE flag has no effect in the Qt GUI.
12341230
// bool secure = (style & CClientUIInterface::SECURE);

0 commit comments

Comments
 (0)