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 @@ -470,16 +470,19 @@ int GuiMain(int argc, char* argv[])
470
470
471
471
BitcoinApplication app (*node, argc, argv);
472
472
473
- // Register meta types used for QMetaObject::invokeMethod
474
- qRegisterMetaType< bool * >();
473
+ // Register meta types used for QMetaObject::invokeMethod and Qt::QueuedConnection
474
+ qRegisterMetaType<bool *>();
475
475
#ifdef ENABLE_WALLET
476
476
qRegisterMetaType<WalletModel*>();
477
477
#endif
478
- // Need to pass name here as CAmount is a typedef (see http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType)
479
- // IMPORTANT if it is no longer a typedef use the normal variant above
480
- qRegisterMetaType< CAmount >(" CAmount" );
481
- qRegisterMetaType< std::function<void ()> >(" std::function<void()>" );
478
+ // Register typedefs (see http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType)
479
+ // IMPORTANT: if CAmount is no longer a typedef use the normal variant above (see https://doc.qt.io/qt-5/qmetatype.html#qRegisterMetaType-1)
480
+ qRegisterMetaType<CAmount>(" CAmount" );
481
+ qRegisterMetaType<size_t >(" size_t" );
482
+
483
+ qRegisterMetaType<std::function<void ()>>(" std::function<void()>" );
482
484
qRegisterMetaType<QMessageBox::Icon>(" QMessageBox::Icon" );
485
+
483
486
// / 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these
484
487
// Command-line options take precedence:
485
488
node->setupServerArgs ();
You can’t perform that action at this time.
0 commit comments