mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Only allow reverse geo lookup if divesite has GPS data
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c7c686f730
commit
b7bf5d0fb2
1 changed files with 1 additions and 0 deletions
|
@ -185,6 +185,7 @@ void LocationInformationWidget::showEvent(QShowEvent *ev)
|
|||
{
|
||||
if (displayed_dive_site.uuid) {
|
||||
updateLabels();
|
||||
ui.geoCodeButton->setEnabled(dive_site_has_gps_location(&displayed_dive_site));
|
||||
QSortFilterProxyModel *m = qobject_cast<QSortFilterProxyModel *>(ui.diveSiteListView->model());
|
||||
emit startFilterDiveSite(displayed_dive_site.uuid);
|
||||
if (m)
|
||||
|
|
Loading…
Add table
Reference in a new issue