From bdd89f0e7ab179f74051ffec9f3ecebd8443af14 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 27 Jun 2013 15:33:44 +0300 Subject: Coordinate some mark_divelist_changed() calls 1) Make a call mark_divelist_changed(TRUE) when the user adds new cylinder or weight entries. 2) Call mark_divelist_changed(FALSE) in MainWindow::on_actionClose_triggered() so that each time after a file is closed or a new one is created it does not ask immediately the user for a save confirmation for the blank file/divelist. 3) Call mark_divelist_changed(TRUE) once a dive's geo location has changed in GlobeGPS::changeDiveGeoPosition(). Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- qt-ui/globe.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/globe.cpp') diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index 24806d520..c16af93cf 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -3,6 +3,7 @@ #include "mainwindow.h" #include "ui_mainwindow.h" #include "../dive.h" +#include "../divelist.h" #include "../helpers.h" #include @@ -203,6 +204,7 @@ void GlobeGPS::changeDiveGeoPosition(qreal lon, qreal lat, GeoDataCoordinates::U reload(); editingDiveCoords = 0; messageWidget->animatedHide(); + mark_divelist_changed(TRUE); } void GlobeGPS::mousePressEvent(QMouseEvent* event) -- cgit v1.2.3-70-g09d2