diff options
author | Vyacheslav Koscheev <vok1980@gmail.com> | 2016-11-14 15:28:31 +0700 |
---|---|---|
committer | Vyacheslav Koscheev <vok1980@gmail.com> | 2017-02-07 08:41:11 +0000 |
commit | d9d36100d170ee7cdb04e2782d75e06118934def (patch) | |
tree | 31bedc5335c6540145fdec671d0f77dc456a2114 /src/plugins/position/gypsy | |
parent | 4106efd630f1ac4ee90e754a3e3e86fd239f8e99 (diff) | |
download | qtlocation-d9d36100d170ee7cdb04e2782d75e06118934def.tar.gz |
Set parent to timers in position plugins
QTimer can be started and stoped only from owner thread.
So, if we'll do moveToThread for parent object,
then we need QTimer to have a parent to change its owner thread too.
Change-Id: Iac57d42b6e72118f31d93f15662403f681925f88
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/position/gypsy')
-rw-r--r-- | src/plugins/position/gypsy/qgeosatelliteinfosource_gypsy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/position/gypsy/qgeosatelliteinfosource_gypsy.cpp b/src/plugins/position/gypsy/qgeosatelliteinfosource_gypsy.cpp index 4e78265f..6b38ec83 100644 --- a/src/plugins/position/gypsy/qgeosatelliteinfosource_gypsy.cpp +++ b/src/plugins/position/gypsy/qgeosatelliteinfosource_gypsy.cpp @@ -141,7 +141,7 @@ gchar *SatelliteGypsyEngine::eng_gconf_client_get_string(GConfClient *client, co } QGeoSatelliteInfoSourceGypsy::QGeoSatelliteInfoSourceGypsy(QObject *parent) : QGeoSatelliteInfoSource(parent), - m_engine(0), m_satellite(0), m_device(0), m_updatesOngoing(false), m_requestOngoing(false) + m_engine(0), m_satellite(0), m_device(0), m_updatesOngoing(false), m_requestOngoing(false), m_requestTimer(this) { m_requestTimer.setSingleShot(true); QObject::connect(&m_requestTimer, SIGNAL(timeout()), this, SLOT(requestUpdateTimeout())); |