summaryrefslogtreecommitdiffstats
path: root/qt-models/maplocationmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/maplocationmodel.cpp')
-rw-r--r--qt-models/maplocationmodel.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/qt-models/maplocationmodel.cpp b/qt-models/maplocationmodel.cpp
index 4e513398b..6b4ab03ad 100644
--- a/qt-models/maplocationmodel.cpp
+++ b/qt-models/maplocationmodel.cpp
@@ -63,12 +63,6 @@ QGeoCoordinate MapLocation::coordinate()
void MapLocation::setCoordinate(QGeoCoordinate coord)
{
m_coordinate = coord;
- emit coordinateChanged();
-}
-
-void MapLocation::setCoordinateNoEmit(QGeoCoordinate coord)
-{
- m_coordinate = coord;
}
struct dive_site *MapLocation::divesite()
@@ -246,7 +240,7 @@ void MapLocationModel::diveSiteChanged(struct dive_site *ds, int field)
const qreal latitude_r = ds->location.lat.udeg * 0.000001;
const qreal longitude_r = ds->location.lon.udeg * 0.000001;
QGeoCoordinate coord(latitude_r, longitude_r);
- m_mapLocations[row]->setCoordinateNoEmit(coord);
+ m_mapLocations[row]->setCoordinate(coord);
}
break;
case LocationInformationModel::NAME: