aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-05-01 14:47:52 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-01 15:23:33 -0700
commit4243fcb9156218f54b3103ce7c8de6ea222f3cfb (patch)
tree7b09846deb68cde5e4d60ede981fff9c8a17c20c /qt-ui/globe.h
parent7f3b487c77c71cc7e3f62bfd2ebde4559a0a6e56 (diff)
downloadsubsurface-4243fcb9156218f54b3103ce7c8de6ea222f3cfb.tar.gz
Dont set coordinates when two or more dives are selectedv4.0.97
If a trip is selected (or for other reasons more than one dive), this would change the GPS coordinates of the whole selection which almost certainly isn't what the user wanted. Instead, only allow changes of the coordinates on the globe if exactly one dive is selected. [Dirk Hohndel: massively rewritten and extended - but I didn't want to simply "steal" the commit from Tomaz... This now maintains the "zoom out mode" for dives without GPS coordinates and deals with edits of multiple dives that are initiated the "normal way" by starting to edit other data as well.] Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/globe.h')
-rw-r--r--qt-ui/globe.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/globe.h b/qt-ui/globe.h
index 51bda4878..91ea46c02 100644
--- a/qt-ui/globe.h
+++ b/qt-ui/globe.h
@@ -40,7 +40,8 @@ slots:
void changeDiveGeoPosition(qreal lon, qreal lat, GeoDataCoordinates::Unit);
void mouseClicked(qreal lon, qreal lat, GeoDataCoordinates::Unit);
void fixZoom();
- void prepareForGetDiveCoordinates();
+ void zoomOutForNoGPS();
+ void prepareForGetDiveCoordinates(struct dive *dive);
};
#else // NO_MARBLE