mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
don't check the root object for path
This commit is contained in:
parent
f745dfdb91
commit
b8b5b2b6ec
1 changed files with 1 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue