aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2019-11-10 12:03:53 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2019-11-10 12:03:53 +0200
commit88a94f7bb8ba2b0257315d70717f9af928ca6561 (patch)
tree1f00903dd21521475d6fd29cb4228b4b73863206 /src
parenta7aec7ad97949a82f870c033d8fd8b65d772eacb (diff)
downloadbitcoin-88a94f7bb8ba2b0257315d70717f9af928ca6561.tar.xz
qt: Fix missing qRegisterMetaType for size_t
It is required in order to use size_t in QueuedConnections.
Diffstat (limited to 'src')
-rw-r--r--src/qt/bitcoin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 234d3865ab..32732102f1 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -438,6 +438,7 @@ int GuiMain(int argc, char* argv[])
// 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");
+ qRegisterMetaType<size_t>("size_t");
qRegisterMetaType< std::function<void()> >("std::function<void()>");
qRegisterMetaType<QMessageBox::Icon>("QMessageBox::Icon");
/// 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these