qt: Call noui_connect to prevent boost::signals2::no_slots_error in early calls to InitWarning
This commit is contained in:
parent
708cbb172d
commit
a0f8df365d
2 changed files with 3 additions and 4 deletions
|
@ -561,6 +561,9 @@ int main(int argc, char *argv[])
|
||||||
#endif
|
#endif
|
||||||
SetupEnvironment();
|
SetupEnvironment();
|
||||||
|
|
||||||
|
// Connect bitcoind signal handlers
|
||||||
|
noui_connect();
|
||||||
|
|
||||||
std::unique_ptr<interfaces::Node> node = interfaces::MakeNode();
|
std::unique_ptr<interfaces::Node> node = interfaces::MakeNode();
|
||||||
|
|
||||||
// Do not refer to data directory yet, this can be overridden by Intro::pickDataDirectory
|
// Do not refer to data directory yet, this can be overridden by Intro::pickDataDirectory
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
#include <chainparams.h>
|
#include <chainparams.h>
|
||||||
#include <interfaces/handler.h>
|
#include <interfaces/handler.h>
|
||||||
#include <interfaces/node.h>
|
#include <interfaces/node.h>
|
||||||
#include <noui.h>
|
|
||||||
#include <ui_interface.h>
|
#include <ui_interface.h>
|
||||||
#include <util/system.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)
|
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);
|
bool modal = (style & CClientUIInterface::MODAL);
|
||||||
// The SECURE flag has no effect in the Qt GUI.
|
// The SECURE flag has no effect in the Qt GUI.
|
||||||
// bool secure = (style & CClientUIInterface::SECURE);
|
// bool secure = (style & CClientUIInterface::SECURE);
|
||||||
|
|
Loading…
Reference in a new issue