Skip to content

Commit

Permalink
qt: Fix missing qRegisterMetaType for size_t
Browse files Browse the repository at this point in the history
It is required in order to use size_t in QueuedConnections.
  • Loading branch information
hebasto committed Nov 10, 2019
1 parent a7aec7a commit 88a94f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qt/bitcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 88a94f7

Please sign in to comment.