From 256c25bd25e7431f8e7452a9473a836b271d0106 Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Wed, 8 Jun 2016 17:12:21 +0300 Subject: MAINT-85 Using mouse scroll while renaming item moves it out of My Inventory tab --- indra/llui/llfolderview.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'indra/llui/llfolderview.cpp') diff --git a/indra/llui/llfolderview.cpp b/indra/llui/llfolderview.cpp index 8166ef6a07..3c79d0a1d5 100644 --- a/indra/llui/llfolderview.cpp +++ b/indra/llui/llfolderview.cpp @@ -684,6 +684,12 @@ void LLFolderView::draw() } } + if (mRenameItem && mRenamer && mRenamer->getVisible() && !getVisibleRect().contains(mRenamer->getRect())) + { + // renamer is not connected to the item we are renaming in any form so manage it manually + closeRenamer(); + } + // skip over LLFolderViewFolder::draw since we don't want the folder icon, label, // and arrow for the root folder LLView::draw(); -- cgit v1.2.3