mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
[Divesite] request dive country
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
dd1c48de66
commit
e1bd006cd6
1 changed files with 8 additions and 0 deletions
|
@ -570,6 +570,14 @@ static inline struct dive_site *get_dive_site_for_dive(struct dive *dive)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static inline char *get_dive_country(struct dive *dive)
|
||||
{
|
||||
struct dive_site *ds = get_dive_site_by_uuid(dive->dive_site_uuid);
|
||||
if (ds && ds->country)
|
||||
return ds->country;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline char *get_dive_location(struct dive *dive)
|
||||
{
|
||||
struct dive_site *ds = get_dive_site_by_uuid(dive->dive_site_uuid);
|
||||
|
|
Loading…
Reference in a new issue