mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move constructLocationTags from divesite.cpp to taxonomy.cpp
After all it doesn't access any dive_site structure. Moreover, rename it, since we use mostly snake_case in core. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
7d7766be9a
commit
4ac2486a23
6 changed files with 55 additions and 55 deletions
|
@ -178,7 +178,7 @@ void TabDiveNotes::updateDiveSite(struct dive *d)
|
|||
struct dive_site *ds = d->dive_site;
|
||||
ui.location->setCurrentDiveSite(d);
|
||||
if (ds) {
|
||||
ui.locationTags->setText(QString::fromStdString(constructLocationTags(ds->taxonomy, true)));
|
||||
ui.locationTags->setText(QString::fromStdString(taxonomy_get_location_tags(ds->taxonomy, true)));
|
||||
|
||||
if (ui.locationTags->text().isEmpty() && has_location(&ds->location))
|
||||
ui.locationTags->setText(printGPSCoords(&ds->location));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue