Showing the changes to interface/src/DiscoverabilityManager.cpp (1 of 1 file). Show all
Unified · Split
| @@ -54,7 +54,7 @@ void DiscoverabilityManager::updateLocation() { · 53 unmodified lines | |||
| 54 | const QString CONNECTED_KEY_IN_LOCATION = "connected"; | 54 | const QString CONNECTED_KEY_IN_LOCATION = "connected"; |
| 55 | locationObject.insert(CONNECTED_KEY_IN_LOCATION, discoverable && domainHandler.isConnected()); | 55 | locationObject.insert(CONNECTED_KEY_IN_LOCATION, discoverable && domainHandler.isConnected()); |
| 56 | 56 | ||
| 57 | if (discoverable) { // Don't consider changes to these as update-worthy if we're not discoverable. | 57 | if (discoverable || _lastLocationObject.isEmpty()) { // Don't consider changes to these as update-worthy if we're not discoverable. |
| 58 | const QString PATH_KEY_IN_LOCATION = "path"; | 58 | const QString PATH_KEY_IN_LOCATION = "path"; |
| 59 | locationObject.insert(PATH_KEY_IN_LOCATION, pathString); | 59 | locationObject.insert(PATH_KEY_IN_LOCATION, pathString); |
| 60 | 60 | ||