mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: activate qPrefDiveComputer
remove DiveComputer from SettingsObjectWrapper and reference qPrefDiveComputer update files using SettingsObjectWrapper/DiveComputer to use qPrefDiveComputer this activated qPrefDiveComputer and removed the similar class from SettingsObjectWrapper. Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
98820cf970
commit
3d6848b22c
9 changed files with 56 additions and 180 deletions
|
@ -125,13 +125,13 @@ extern "C" void call_for_each_dc (void *f, void (*callback)(void *, const char *
|
|||
extern "C" int is_default_dive_computer(const char *vendor, const char *product)
|
||||
{
|
||||
auto dc = SettingsObjectWrapper::instance()->dive_computer_settings;
|
||||
return dc->dc_vendor() == vendor && dc->dc_product() == product;
|
||||
return dc->vendor() == vendor && dc->product() == product;
|
||||
}
|
||||
|
||||
extern "C" int is_default_dive_computer_device(const char *name)
|
||||
{
|
||||
auto dc = SettingsObjectWrapper::instance()->dive_computer_settings;
|
||||
return dc->dc_device() == name;
|
||||
return dc->device() == name;
|
||||
}
|
||||
|
||||
extern "C" void set_dc_nickname(struct dive *dive)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue