don't check the root object for path

This commit is contained in:
Stephen Birarda 2015-01-14 16:56:49 -08:00
parent f745dfdb91
commit b8b5b2b6ec

View file

@ -225,13 +225,7 @@ void AddressManager::goToAddressFromObject(const QVariantMap& dataObject) {
// take the path that came back
const QString PLACE_PATH_KEY = "path";
QString returnedPath;
if (locationMap.contains(PLACE_PATH_KEY) && !locationMap[PLACE_PATH_KEY].toString().isEmpty()) {
returnedPath = locationMap[PLACE_PATH_KEY].toString();
} else if (rootMap.contains(PLACE_PATH_KEY) && !rootMap[PLACE_PATH_KEY].toString().isEmpty()) {
returnedPath = rootMap[PLACE_PATH_KEY].toString();
}
QString returnedPath = locationMap[PLACE_PATH_KEY].toString();
bool shouldFaceViewpoint = locationMap.contains(LOCATION_API_ONLINE_KEY);