diff --git a/indra/newview/llsidepanelinventory.cpp b/indra/newview/llsidepanelinventory.cpp
index cbf43dbb937c522f51eaf32ee6712262b8188bea..fe844ce5e4da1bd99384b4e1226f1da15ae31cf1 100755
--- a/indra/newview/llsidepanelinventory.cpp
+++ b/indra/newview/llsidepanelinventory.cpp
@@ -710,13 +710,13 @@ void LLSidepanelInventory::clearSelections(bool clearMain, bool clearInbox)
 		
 		if (inv_panel)
 		{
-			inv_panel->clearSelection();
+			inv_panel->getRootFolder()->clearSelection();
 		}
 	}
 	
 	if (clearInbox && mInboxEnabled && (mInventoryPanelInbox != NULL))
 	{
-		mInventoryPanelInbox->clearSelection();
+		mInventoryPanelInbox->getRootFolder()->clearSelection();
 	}
 	
 	updateVerbs();