aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2013-04-14 18:50:40 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2013-04-14 18:50:40 +0200
commite83a90f127060487b7a6717a740a59db244b4e53 (patch)
tree156e5fe46767913081486d62496d39b8e0568ccf /src/qt
parentac89a1ebe7110051bd35fbbcdb706030f07d561e (diff)
downloadbitcoin-e83a90f127060487b7a6717a740a59db244b4e53.tar.xz
qt: register metatype for bool*
This allows the bool* type to be passed between threads. Should solve issue #2402.
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/bitcoin.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index f079f3b0e9..4e2dbef598 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -34,6 +34,9 @@ Q_IMPORT_PLUGIN(qkrcodecs)
Q_IMPORT_PLUGIN(qtaccessiblewidgets)
#endif
+// Declare meta types used for QMetaObject::invokeMethod
+Q_DECLARE_METATYPE(bool*)
+
// Need a global reference for the notifications to find the GUI
static BitcoinGUI *guiref;
static QSplashScreen *splashref;
@@ -118,6 +121,9 @@ int main(int argc, char *argv[])
Q_INIT_RESOURCE(bitcoin);
QApplication app(argc, argv);
+ // Register meta types used for QMetaObject::invokeMethod
+ qRegisterMetaType< bool* >();
+
// Do this early as we don't want to bother initializing if we are just calling IPC
// ... but do it after creating app, so QCoreApplication::arguments is initialized:
if (PaymentServer::ipcSendCommandLine())