diff options
author | Sander Kleijwegt <sander@myowndomain.nl> | 2015-08-28 22:39:59 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-28 16:16:05 -0700 |
commit | 9770369889eb71b66667b14778cb412800ea04ca (patch) | |
tree | 793cc0b5d2e23e3db670cec261f3a6a605c83016 /qt-ui/maintab.cpp | |
parent | 67abcd0c2c2e32c4f88762dbf2eef079ca7dc8f9 (diff) | |
download | subsurface-9770369889eb71b66667b14778cb412800ea04ca.tar.gz |
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>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 346fdc6a9..5f7e7da47 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -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; |