aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-07-08 21:30:15 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-07-08 21:30:25 +0100
commitf27bd96b5fdc2921d93c44bbf422bff0e979c4de (patch)
tree8c01853a1ac5d5b07ba229420063c1e05d46fa63 /src/qt
parent2679bb8919b5089f8067ccfd94f766747b8df671 (diff)
gui: Fix missing qRegisterMetaType(WalletModel*)
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/bitcoin.cpp3
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");