aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoin.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2017-06-23 09:32:38 +0200
committerJonas Schnelli <dev@jonasschnelli.ch>2017-06-29 17:48:08 +0200
commit00cb69bc8655b1c17064a7e42453fd049e555076 (patch)
treee6b4f5be586f06f073c5a35e30f18e4e845f066d /src/qt/bitcoin.cpp
parent90a002ea647dcea57a2ed4294eab77897168ba1d (diff)
downloadbitcoin-00cb69bc8655b1c17064a7e42453fd049e555076.tar.xz
[Qt] allow to execute a callback during splashscreen progress
Diffstat (limited to 'src/qt/bitcoin.cpp')
-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 6d8760c071..8a745cadce 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -578,6 +578,7 @@ int main(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< std::function<void(void)> >("std::function<void(void)>");
/// 3. Application identification
// must be set before OptionsModel is initialized or translations are loaded,