Always show the dive site edit button

Update the tooltip and enable only when there is a divesite selected

Signed-off-by: Sander Kleijwegt <sander@myowndomain.nl>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Sander Kleijwegt 2015-08-28 22:39:59 +02:00 committed by Dirk Hohndel
parent 67abcd0c2c
commit 9770369889
2 changed files with 2 additions and 2 deletions

View file

@ -546,7 +546,7 @@ void MainTab::updateDiveInfo(bool clear)
if (ds)
copy_dive_site(ds, &displayed_dive_site);
}
ui.editDiveSiteButton->setVisible(ds && dive_site_has_gps_location(ds));
ui.editDiveSiteButton->setEnabled(ds);
if (ds) {
// construct the location tags
QString locationTag;