aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2015-07-30 22:41:02 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-31 10:31:00 -0700
commitfa6e1d55065ca95b59bcc19c96cd7bc23436c53e (patch)
treebcd0463d5ce0c33976ce204443118f952a5243cb /qt-ui
parentc13e5d069cefe2015d134d45f9fa9b1f52659eae (diff)
downloadsubsurface-fa6e1d55065ca95b59bcc19c96cd7bc23436c53e.tar.gz
Paint the coords-widget yellow after clicking on the globe
When we clicked in the globe and changed programatically the text on the coordinates edit widget, the background was still white instead of the bright yellow that it should have to show that it was modified. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/locationinformation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp
index 91ded6c6a..a0c52e14a 100644
--- a/qt-ui/locationinformation.cpp
+++ b/qt-ui/locationinformation.cpp
@@ -61,7 +61,10 @@ void LocationInformationWidget::updateLabels()
void LocationInformationWidget::updateGpsCoordinates()
{
+ QString oldText = ui.diveSiteCoordinates->text();
ui.diveSiteCoordinates->setText(printGPSCoords(displayed_dive_site.latitude.udeg, displayed_dive_site.longitude.udeg));
+ if (oldText != ui.diveSiteCoordinates->text())
+ markChangedWidget(ui.diveSiteCoordinates);
}
void LocationInformationWidget::acceptChanges()