mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
67abcd0c2c
commit
9770369889
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue