mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue