aboutsummaryrefslogtreecommitdiff
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-09 14:15:27 +0100
commite2f7677bdeb15d1517520ddc3e95e42ca13f721a (patch)
tree56337c2ed42ef3f640c47a61d05dac7b39c96ea4
parent1fb747a8007caa922b29a69408c2152ba5575db5 (diff)
downloadbitcoin-e2f7677bdeb15d1517520ddc3e95e42ca13f721a.tar.xz
gui: Fix missing qRegisterMetaType(WalletModel*)
Github-Pull: #16348 Rebased-From: f27bd96b5fdc2921d93c44bbf422bff0e979c4de
-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 d2ac18f5a7..3098c7a2fe 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -450,6 +450,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");