Skip to content

Commit 88a94f7

Browse files
committed
qt: Fix missing qRegisterMetaType for size_t
It is required in order to use size_t in QueuedConnections.
1 parent a7aec7a commit 88a94f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/qt/bitcoin.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ int GuiMain(int argc, char* argv[])
438438
// Need to pass name here as CAmount is a typedef (see http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType)
439439
// IMPORTANT if it is no longer a typedef use the normal variant above
440440
qRegisterMetaType< CAmount >("CAmount");
441+
qRegisterMetaType<size_t>("size_t");
441442
qRegisterMetaType< std::function<void()> >("std::function<void()>");
442443
qRegisterMetaType<QMessageBox::Icon>("QMessageBox::Icon");
443444
/// 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these

0 commit comments

Comments
 (0)