Qt6: don't build MapWidget

Since Qt6 doesn't include QtLocation anymore, we can't build MapWidget.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2022-02-09 15:56:36 -08:00
parent ce254bee57
commit 47d900bee5
5 changed files with 23 additions and 0 deletions

View file

@ -523,7 +523,9 @@ void DiveListView::selectionChangeDone()
if (d->selected && !d->hidden_by_filter && d->dive_site && !selectedSites.contains(d->dive_site))
selectedSites.push_back(d->dive_site);
}
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
MapWidget::instance()->setSelected(selectedSites);
#endif
}
emit divesSelected();
}