summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-10-22 11:43:28 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-29 11:07:52 -0700
commit4e320cca5bae6d3d625c91e48ff2635d9b167aa2 (patch)
tree8bf1ba516b7aada89132c679350f496bb86a339a /desktop-widgets
parentc78a864e15c7e070a7233d09c805f66490de7e27 (diff)
downloadsubsurface-4e320cca5bae6d3d625c91e48ff2635d9b167aa2.tar.gz
Remove three obsolete preferences options for geocoding
These options are not used any longer/were never used and can be removed to not confuse the users. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/preferences/preferences_georeference.cpp6
-rw-r--r--desktop-widgets/preferences/prefs_georeference.ui30
2 files changed, 0 insertions, 36 deletions
diff --git a/desktop-widgets/preferences/preferences_georeference.cpp b/desktop-widgets/preferences/preferences_georeference.cpp
index 6600326ea..d839f9e29 100644
--- a/desktop-widgets/preferences/preferences_georeference.cpp
+++ b/desktop-widgets/preferences/preferences_georeference.cpp
@@ -24,9 +24,6 @@ PreferencesGeoreference::~PreferencesGeoreference()
void PreferencesGeoreference::refreshSettings()
{
- 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);
ui->first_item->setCurrentIndex(prefs.geocoding.category[0]);
ui->second_item->setCurrentIndex(prefs.geocoding.category[1]);
ui->third_item->setCurrentIndex(prefs.geocoding.category[2]);
@@ -35,9 +32,6 @@ void PreferencesGeoreference::refreshSettings()
void PreferencesGeoreference::syncSettings()
{
auto geocoding = SettingsObjectWrapper::instance()->geocoding;
- geocoding->setEnableGeocoding(ui->enable_geocoding->isChecked());
- geocoding->setParseDiveWithoutGps(ui->parse_without_gps->isChecked());
- geocoding->setTagExistingDives(ui->tag_existing_dives->isChecked());
geocoding->setFirstTaxonomyCategory((taxonomy_category) ui->first_item->currentIndex());
geocoding->setSecondTaxonomyCategory((taxonomy_category) ui->second_item->currentIndex());
geocoding->setThirdTaxonomyCategory((taxonomy_category) ui->third_item->currentIndex());
diff --git a/desktop-widgets/preferences/prefs_georeference.ui b/desktop-widgets/preferences/prefs_georeference.ui
index c197a970b..e3e7fe4c7 100644
--- a/desktop-widgets/preferences/prefs_georeference.ui
+++ b/desktop-widgets/preferences/prefs_georeference.ui
@@ -15,36 +15,6 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
- <widget class="QGroupBox" name="groupBox_Geocoding">
- <property name="title">
- <string>Dive site geo lookup</string>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout_8">
- <item>
- <widget class="QCheckBox" name="enable_geocoding">
- <property name="text">
- <string>Enable geocoding for dive site management</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QCheckBox" name="parse_without_gps">
- <property name="text">
- <string>Parse site without GPS data</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QCheckBox" name="tag_existing_dives">
- <property name="text">
- <string>Same format for existing dives</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- <item>
<widget class="QGroupBox" name="groupBox_12">
<property name="title">
<string>Dive site layout</string>