mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
028f0401f6
commit
aaa70ff56e
4 changed files with 18 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue