File tree 1 file changed +9
-6
lines changed
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[])
430
430
431
431
BitcoinApplication app (*node);
432
432
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 *>();
435
435
#ifdef ENABLE_WALLET
436
436
qRegisterMetaType<WalletModel*>();
437
437
#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()>" );
442
444
qRegisterMetaType<QMessageBox::Icon>(" QMessageBox::Icon" );
445
+
443
446
// / 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these
444
447
// Command-line options take precedence:
445
448
node->setupServerArgs ();
You can’t perform that action at this time.
0 commit comments