summaryrefslogtreecommitdiffstats
path: root/src/imports/sensors/sensors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/sensors/sensors.cpp')
-rw-r--r--src/imports/sensors/sensors.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/sensors/sensors.cpp b/src/imports/sensors/sensors.cpp
index b81bdd3d..f65af6a2 100644
--- a/src/imports/sensors/sensors.cpp
+++ b/src/imports/sensors/sensors.cpp
@@ -106,6 +106,9 @@ public:
int major;
int minor;
+ // Force all of the sensors initialization to happen now, while we don't have a UI thread to interrupt
+ (void)QSensor::sensorTypes();
+
// Register the 1.1 interfaces
major = 1;
minor = 1;