Skip to content

Commit

Permalink
gui: Fix missing qRegisterMetaType(WalletModel*)
Browse files Browse the repository at this point in the history
  • Loading branch information
promag committed Jul 8, 2019
1 parent 2679bb8 commit f27bd96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qt/bitcoin.cpp
Expand Up @@ -448,6 +448,9 @@ int GuiMain(int argc, char* argv[])

// Register meta types used for QMetaObject::invokeMethod
qRegisterMetaType< bool* >();
#ifdef ENABLE_WALLET
qRegisterMetaType<WalletModel*>();
#endif
// Need to pass name here as CAmount is a typedef (see http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType)
// IMPORTANT if it is no longer a typedef use the normal variant above
qRegisterMetaType< CAmount >("CAmount");
Expand Down

0 comments on commit f27bd96

Please sign in to comment.