summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Sander Kleijwegt <sander@myowndomain.nl>2015-08-28 22:39:59 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-28 16:16:05 -0700
commit9770369889eb71b66667b14778cb412800ea04ca (patch)
tree793cc0b5d2e23e3db670cec261f3a6a605c83016 /qt-ui
parent67abcd0c2c2e32c4f88762dbf2eef079ca7dc8f9 (diff)
downloadsubsurface-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')
-rw-r--r--qt-ui/maintab.cpp2
-rw-r--r--qt-ui/maintab.ui2
2 files changed, 2 insertions, 2 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;
diff --git a/qt-ui/maintab.ui b/qt-ui/maintab.ui
index fb4180dbc..7ea895863 100644
--- a/qt-ui/maintab.ui
+++ b/qt-ui/maintab.ui
@@ -211,7 +211,7 @@
<item>
<widget class="QToolButton" name="editDiveSiteButton">
<property name="toolTip">
- <string>Perform a location lookup based on GPS information (country, city, body of water, etc.)</string>
+ <string>Edit dive site</string>
</property>
<property name="text">
<string>...</string>