File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -430,16 +430,19 @@ int GuiMain(int argc, char* argv[])
430430
431431 BitcoinApplication app (*node);
432432
433- // Register meta types used for QMetaObject::invokeMethod
434- qRegisterMetaType< bool * >();
433+ // Register meta types used for QMetaObject::invokeMethod and Qt::QueuedConnection
434+ qRegisterMetaType<bool *>();
435435#ifdef ENABLE_WALLET
436436 qRegisterMetaType<WalletModel*>();
437437#endif
438- // Need to pass name here as CAmount is a typedef (see http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType)
439- // IMPORTANT if it is no longer a typedef use the normal variant above
440- qRegisterMetaType< CAmount >(" CAmount" );
441- qRegisterMetaType< std::function<void ()> >(" std::function<void()>" );
438+ // Register typedefs (see http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType)
439+ // IMPORTANT: if CAmount is no longer a typedef use the normal variant above (see https://doc.qt.io/qt-5/qmetatype.html#qRegisterMetaType-1)
440+ qRegisterMetaType<CAmount>(" CAmount" );
441+ qRegisterMetaType<size_t >(" size_t" );
442+
443+ qRegisterMetaType<std::function<void ()>>(" std::function<void()>" );
442444 qRegisterMetaType<QMessageBox::Icon>(" QMessageBox::Icon" );
445+
443446 // / 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these
444447 // Command-line options take precedence:
445448 node->setupServerArgs ();
You can’t perform that action at this time.
0 commit comments