mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't enter dive site edit mode whenever the coordinates are set in the UI
This function was missing the check if setting that field actually changes what's already in the data structure. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d5f6b104a2
commit
2c2adacb90
1 changed files with 2 additions and 1 deletions
|
@ -784,7 +784,8 @@ void LocationInformationWidget::enableEdition()
|
|||
|
||||
void LocationInformationWidget::on_diveSiteCoordinates_textChanged(const QString& text)
|
||||
{
|
||||
markChangedWidget(ui.diveSiteCoordinates);
|
||||
if (!same_string(qPrintable(text), printGPSCoords(currentDs->latitude.udeg, currentDs->longitude.udeg)))
|
||||
markChangedWidget(ui.diveSiteCoordinates);
|
||||
}
|
||||
|
||||
void LocationInformationWidget::on_diveSiteDescription_textChanged(const QString& text)
|
||||
|
|
Loading…
Add table
Reference in a new issue