From 9770369889eb71b66667b14778cb412800ea04ca Mon Sep 17 00:00:00 2001 From: Sander Kleijwegt Date: Fri, 28 Aug 2015 22:39:59 +0200 Subject: Always show the dive site edit button Update the tooltip and enable only when there is a divesite selected Signed-off-by: Sander Kleijwegt Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/maintab.cpp') 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; -- cgit v1.2.3-70-g09d2