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
@ -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…
x
Reference in New Issue
Block a user