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)
|
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;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue