aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoin.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2013-04-18 08:59:49 -0700
committerWladimir J. van der Laan <[email protected]>2013-04-18 08:59:49 -0700
commit72782f3b92ca7dbfd44210e6a2a93d9860fcd405 (patch)
tree1ad669767777e57817694a7c04074228a594b736 /src/qt/bitcoin.cpp
parentMerge pull request #2501 from Diapolo/progress (diff)
parentqt: register metatype for bool* (diff)
downloaddiscoin-72782f3b92ca7dbfd44210e6a2a93d9860fcd405.tar.xz
discoin-72782f3b92ca7dbfd44210e6a2a93d9860fcd405.zip
Merge pull request #2525 from laanwj/2013_04_metatypebool
qt: register metatype for bool*
Diffstat (limited to 'src/qt/bitcoin.cpp')
-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 9131f8250..a7b026e78 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 SplashScreen *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())