diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-05-01 13:42:54 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-01 09:59:07 -0700 |
commit | 83c5ab58718e057472b63b97c94d52d3b1b9e83e (patch) | |
tree | 488246021fd7eec4043d15c15cba6ec33dca24b8 /qt-ui | |
parent | 010a21fb1e2d8466987590631c99de3f9991705a (diff) | |
download | subsurface-83c5ab58718e057472b63b97c94d52d3b1b9e83e.tar.gz |
Zoom out when dive has no coords.
This patch makes the globe zoom out to show it complete when
the dive has no coordinates.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/globe.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index 961e0dbe5..b8a556a50 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -241,6 +241,9 @@ void GlobeGPS::prepareForGetDiveCoordinates() messageWidget->setWordWrap(true); messageWidget->animatedShow(); editingDiveLocation = true; + if(fixZoomTimer->isActive()) + fixZoomTimer->stop(); + setZoom(1200, Marble::Automatic); } } |