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) if (ds)
copy_dive_site(ds, &displayed_dive_site); copy_dive_site(ds, &displayed_dive_site);
} }
ui.editDiveSiteButton->setVisible(ds && dive_site_has_gps_location(ds)); ui.editDiveSiteButton->setEnabled(ds);
if (ds) { if (ds) {
// construct the location tags // construct the location tags
QString locationTag; QString locationTag;

View file

@ -211,7 +211,7 @@
<item> <item>
<widget class="QToolButton" name="editDiveSiteButton"> <widget class="QToolButton" name="editDiveSiteButton">
<property name="toolTip"> <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>
<property name="text"> <property name="text">
<string>...</string> <string>...</string>