aboutsummaryrefslogtreecommitdiffstats
path: root/src/ivicore/qivipendingreply.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ivicore/qivipendingreply.cpp')
-rw-r--r--src/ivicore/qivipendingreply.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ivicore/qivipendingreply.cpp b/src/ivicore/qivipendingreply.cpp
index 0229d39..b0c6edd 100644
--- a/src/ivicore/qivipendingreply.cpp
+++ b/src/ivicore/qivipendingreply.cpp
@@ -81,7 +81,7 @@ void qiviRegisterPendingReplyBasicTypes() {
// rest of the library is initialized (e.g. the QMetaObject of QIviPendingReplyBase).
// The singleshot timer makes sure the registration is done in the next event
// loop run, when everything is ready.
- QTimer::singleShot(0, []() {
+ QMetaObject::invokeMethod(qApp, []() {
qRegisterMetaType<QIviPendingReplyBase>("QIviPendingReplyBase");
QT_FOR_EACH_STATIC_PRIMITIVE_TYPE(QTIVI_ADD_STATIC_METATYPE)
QT_FOR_EACH_STATIC_PRIMITIVE_POINTER(QTIVI_ADD_STATIC_METATYPE)