summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llfloaterpathfindingobjects.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llfloaterpathfindingobjects.cpp b/indra/newview/llfloaterpathfindingobjects.cpp
index 56f45a886f..6f183c78b1 100644
--- a/indra/newview/llfloaterpathfindingobjects.cpp
+++ b/indra/newview/llfloaterpathfindingobjects.cpp
@@ -304,10 +304,12 @@ void LLFloaterPathfindingObjects::handleUpdateObjectList(LLPathfindingManager::r
setMessagingState(kMessagingNotEnabled);
break;
case LLPathfindingManager::kRequestError :
- setMessagingState(kMessagingGetError);
+ clearAllObjects();
+ setMessagingState(kMessagingSetError);
break;
default :
- setMessagingState(kMessagingGetError);
+ clearAllObjects();
+ setMessagingState(kMessagingSetError);
llassert(0);
break;
}
@@ -401,7 +403,7 @@ BOOL LLFloaterPathfindingObjects::isShowBeacons() const
void LLFloaterPathfindingObjects::clearAllObjects()
{
selectNoneObjects();
- mObjectsScrollList->clear();
+ mObjectsScrollList->deleteAllItems();
mObjectList.reset();
}