File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -439,17 +439,19 @@ int GuiMain(int argc, char* argv[])
439439
440440 BitcoinApplication app (*node);
441441
442- // Register meta types used for QMetaObject::invokeMethod
443- qRegisterMetaType< bool * >();
442+ // Register meta types used for QMetaObject::invokeMethod and Qt::QueuedConnection
443+ qRegisterMetaType<bool *>();
444444#ifdef ENABLE_WALLET
445445 qRegisterMetaType<WalletModel*>();
446446#endif
447- // Need to pass name here as CAmount is a typedef (see http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType)
448- // IMPORTANT if it is no longer a typedef use the normal variant above
449- qRegisterMetaType< CAmount >(" CAmount" );
447+ // Register typedefs (see http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType)
448+ // IMPORTANT: if CAmount is no longer a typedef use the normal variant above (see https://doc.qt.io/qt-5/qmetatype.html#qRegisterMetaType-1)
449+ qRegisterMetaType<CAmount>(" CAmount" );
450450 qRegisterMetaType<size_t >(" size_t" );
451- qRegisterMetaType< std::function<void ()> >(" std::function<void()>" );
451+
452+ qRegisterMetaType<std::function<void ()>>(" std::function<void()>" );
452453 qRegisterMetaType<QMessageBox::Icon>(" QMessageBox::Icon" );
454+
453455 // / 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these
454456 // Command-line options take precedence:
455457 node->setupServerArgs ();
You can’t perform that action at this time.
0 commit comments