Showing the changes to interface/src/DiscoverabilityManager.cpp (1 of 4 files). Show all
Unified · Split
| @@ -66,8 +66,6 @@ void DiscoverabilityManager::updateLocation() { · 65 unmodified lines | |||
| 66 | accountManager.authenticatedRequest(API_USER_LOCATION_PATH, QNetworkAccessManager::PutOperation, | 66 | accountManager.authenticatedRequest(API_USER_LOCATION_PATH, QNetworkAccessManager::PutOperation, |
| 67 | JSONCallbackParameters(), QJsonDocument(rootObject).toJson()); | 67 | JSONCallbackParameters(), QJsonDocument(rootObject).toJson()); |
| 68 | } | 68 | } |
| 69 | } else { | ||
| 70 | qDebug() << "not updating discoverability since it is currently set to none!"; | ||
| 71 | } | 69 | } |
| 72 | } | 70 | } |
| 73 | 71 | ||
| @@ -76,7 +74,7 @@ void DiscoverabilityManager::removeLocation() { · 2 unmodified lines | |||
| 76 | accountManager.authenticatedRequest(API_USER_LOCATION_PATH, QNetworkAccessManager::DeleteOperation); | 74 | accountManager.authenticatedRequest(API_USER_LOCATION_PATH, QNetworkAccessManager::DeleteOperation); |
| 77 | } | 75 | } |
| 78 | 76 | ||
| 79 | void DiscoverabilityManager::setDiscoverability(Discoverability::Mode discoverabilityMode) { | 77 | void DiscoverabilityManager::setDiscoverabilityMode(Discoverability::Mode discoverabilityMode) { |
| 80 | if (_mode.get() != discoverabilityMode) { | 78 | if (_mode.get() != discoverabilityMode) { |
| 81 | 79 | ||
| 82 | // update the setting to the new value | 80 | // update the setting to the new value |