From aaa70ff56e2b5891f1c8241bf10a8e236bf86108 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 25 Aug 2015 18:27:19 -0300 Subject: Turn the get taxonomy button into a manage dive site button The get taxonomy button will be inside the manage dive site interface. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui/maintab.cpp') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index c200b36be..dc9ec9441 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -76,7 +76,7 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), locationManagementEditHelper, &LocationManagementEditHelper::handleActivation); ui.location->setCompleter(completer); - connect(ui.geocodeButton, SIGNAL(clicked()), this, SLOT(reverseGeocode())); + connect(ui.editDiveSiteButton, SIGNAL(clicked()), MainWindow::instance(), SIGNAL(startDiveSiteEdit())); QAction *action = new QAction(tr("Apply changes"), this); connect(action, SIGNAL(triggered(bool)), this, SLOT(acceptChanges())); @@ -520,7 +520,7 @@ void MainTab::updateDiveInfo(bool clear) if (ds) copy_dive_site(ds, &displayed_dive_site); } - ui.geocodeButton->setVisible(ds && dive_site_has_gps_location(ds)); + ui.editDiveSiteButton->setVisible(ds && dive_site_has_gps_location(ds)); if (ds) { // construct the location tags QString locationTag; -- cgit v1.2.3-70-g09d2