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>
This commit is contained in:
parent
c13e5d069c
commit
fa6e1d5506
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user