From fa6e1d55065ca95b59bcc19c96cd7bc23436c53e Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 30 Jul 2015 22:41:02 -0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-ui/locationinformation.cpp') 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() -- cgit v1.2.3-70-g09d2