From a9eccb687ad8e0408ab742916d5c915d5fd33fae Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 22 Jun 2015 11:26:17 -0700 Subject: [PATCH] fix for double store on index path lookup --- libraries/networking/src/AddressManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/networking/src/AddressManager.cpp b/libraries/networking/src/AddressManager.cpp index a8ed54fdd1..591b844aed 100644 --- a/libraries/networking/src/AddressManager.cpp +++ b/libraries/networking/src/AddressManager.cpp @@ -308,6 +308,9 @@ void AddressManager::goToAddressFromObject(const QVariantMap& dataObject, const handlePath(returnedPath, trigger); } } else { + // we're going to hit the index path, set that as the _newHostLookupPath + _newHostLookupPath = INDEX_PATH; + // we didn't override the path or get one back - ask the DS for the viewpoint of its index path // which we will jump to if it exists emit pathChangeRequired(INDEX_PATH); @@ -479,6 +482,7 @@ bool AddressManager::handleViewpoint(const QString& viewpointString, bool should // We use _newHostLookupPath to determine if the client has already stored its last address // before moving to a new host thanks to the information in the same lookup URL. + if (definitelyPathOnly || (!pathString.isEmpty() && pathString != _newHostLookupPath)) { addCurrentAddressToHistory(LookupTrigger::UserInput); }