diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-07-08 21:30:15 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-07-08 21:30:25 +0100 |
commit | f27bd96b5fdc2921d93c44bbf422bff0e979c4de (patch) | |
tree | 8c01853a1ac5d5b07ba229420063c1e05d46fa63 /src/qt | |
parent | 2679bb8919b5089f8067ccfd94f766747b8df671 (diff) |
gui: Fix missing qRegisterMetaType(WalletModel*)
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/bitcoin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index aa8bbab85d..eb53d71439 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -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"); |