From 5861da0bce842bcca9777cad5d41bea790d6c5da Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 5 Oct 2015 23:02:55 +0100 Subject: Remove unused part of the geocoding preferences And always turn on geocoding. The user needs to trigger this manually anyway, so there's no point in having the extra option in the preferences. Signed-off-by: Dirk Hohndel --- qt-ui/preferences.cpp | 6 +++++- qt-ui/preferences.ui | 30 ------------------------------ 2 files changed, 5 insertions(+), 31 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp index d0adfabf4..615f0b84e 100644 --- a/qt-ui/preferences.cpp +++ b/qt-ui/preferences.cpp @@ -241,9 +241,11 @@ void PreferencesDialog::setUiFromPrefs() ui.cloud_background_sync->setChecked(prefs.cloud_background_sync); // GeoManagement +#ifdef DISABLED ui.enable_geocoding->setChecked( prefs.geocoding.enable_geocoding ); ui.parse_without_gps->setChecked(prefs.geocoding.parse_dive_without_gps); ui.tag_existing_dives->setChecked(prefs.geocoding.tag_existing_dives); +#endif ui.first_item->setCurrentIndex(prefs.geocoding.category[0]); ui.second_item->setCurrentIndex(prefs.geocoding.category[1]); ui.third_item->setCurrentIndex(prefs.geocoding.category[2]); @@ -417,9 +419,11 @@ void PreferencesDialog::syncSettings() s.endGroup(); s.beginGroup("geocoding"); +#ifdef DISABLED s.setValue("enable_geocoding", ui.enable_geocoding->isChecked()); - s.setValue("parse_dives_without_gps", ui.parse_without_gps->isChecked()); + s.setValue("parse_dive_without_gps", ui.parse_without_gps->isChecked()); s.setValue("tag_existing_dives", ui.tag_existing_dives->isChecked()); +#endif s.setValue("cat0", ui.first_item->currentIndex()); s.setValue("cat1", ui.second_item->currentIndex()); s.setValue("cat2", ui.third_item->currentIndex()); diff --git a/qt-ui/preferences.ui b/qt-ui/preferences.ui index 403e52164..061ecffb9 100644 --- a/qt-ui/preferences.ui +++ b/qt-ui/preferences.ui @@ -1432,36 +1432,6 @@ 5 - - - - Dive site geo lookup - - - - - - Enable geocoding for dive site management - - - - - - - Parse site without GPS data - - - - - - - Same format for existing dives - - - - - - -- cgit v1.2.3-70-g09d2