diff options
author | Lorn Potter <lorn.potter@gmail.com> | 2015-04-02 18:33:15 +1000 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-04-02 08:44:55 +0000 |
commit | 9cf0b4ed7a8979d124ef0c222084816cca8c1f0a (patch) | |
tree | 4381236f0c66c542a063b5244f96bf2cb3530db2 /src/plugins | |
parent | 767f33d8c657f194d6d2e33f87ff9fc4560b30fe (diff) | |
download | qtsensors-9cf0b4ed7a8979d124ef0c222084816cca8c1f0a.tar.gz |
Fix crash in QtSensors client, when sensorfwd is not running.
Change-Id: Iecb6fe8637001d3005aa04c58d1d888f534c5082
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/sensors/sensorfw/sensorfwsensorbase.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/sensors/sensorfw/sensorfwsensorbase.cpp b/src/plugins/sensors/sensorfw/sensorfwsensorbase.cpp index ba37628..0ca815a 100644 --- a/src/plugins/sensors/sensorfw/sensorfwsensorbase.cpp +++ b/src/plugins/sensors/sensorfw/sensorfwsensorbase.cpp @@ -294,7 +294,8 @@ bool SensorfwSensorBase::initSensorInterface(QString const &name) void SensorfwSensorBase::standyOverrideChanged() { - m_sensorInterface->setStandbyOverride(sensor()->isAlwaysOn()); + if (m_sensorInterface) + m_sensorInterface->setStandbyOverride(sensor()->isAlwaysOn()); } bool SensorfwSensorBase::isFeatureSupported(QSensor::Feature feature) const |