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:
Dirk Hohndel 2015-03-10 10:49:21 -07:00
parent d5f6b104a2
commit 2c2adacb90

View file

@ -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)