projects
/
situare
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5335e0
)
geomap: source connection fixes
author
Janne Kiiski
<janne.kiiski@ixonos.com>
Wed, 24 Nov 2010 13:57:08 +0000
(15:57 +0200)
committer
Janne Kiiski
<janne.kiiski@ixonos.com>
Wed, 24 Nov 2010 13:57:08 +0000
(15:57 +0200)
src/qmlui/geomap.cpp
patch
|
blob
|
history
diff --git
a/src/qmlui/geomap.cpp
b/src/qmlui/geomap.cpp
index
649121f
..
20006f5
100644
(file)
--- a/
src/qmlui/geomap.cpp
+++ b/
src/qmlui/geomap.cpp
@@
-256,15
+256,17
@@
void GeoMap::goToGpsLocation()
{
DEBUG_FUNCTION_TIME;
qDebug() << "QmlMap::goToGpsLocation";
- if (!source)
+ if (!source) {
source = QGeoPositionInfoSource::createDefaultSource(this);
-
- if (source) {
- source->requestUpdate();
+ Q_ASSERT(source);
connect(source, SIGNAL(positionUpdated(QGeoPositionInfo)), this, SLOT(positionUpdated(QGeoPositionInfo)));
source->setUpdateInterval(10000);
source->startUpdates();
}
+
+ if (source) {
+ source->requestUpdate();
+ }
}
void GeoMap::onClicked(qreal mouseX, qreal mouseY)