mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: activate qPrefLocationService
remove LocationService from SettingsObjectWrapper and reference qPrefLocationService update files using SettingsObjectWrapper/LocationService to use qPrefLocationService this activated qPrefLocationService and removed the similar class from SettingsObjectWrapper. Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
2b11fd4cc8
commit
75ce813a27
6 changed files with 15 additions and 72 deletions
|
@ -425,8 +425,8 @@ QMLManager *QMLManager::instance()
|
|||
void QMLManager::savePreferences()
|
||||
{
|
||||
auto location = SettingsObjectWrapper::instance()->location_settings;
|
||||
location->setTimeThreshold(QMLPrefs::instance()->timeThreshold() * 60);
|
||||
location->setDistanceThreshold(QMLPrefs::instance()->distanceThreshold());
|
||||
location->set_time_threshold(QMLPrefs::instance()->timeThreshold() * 60);
|
||||
location->set_distance_threshold(QMLPrefs::instance()->distanceThreshold());
|
||||
}
|
||||
|
||||
#define CLOUDURL QString(prefs.cloud_base_url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue