summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2014-07-21 10:53:01 +0300
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2014-07-21 10:53:01 +0300
commitb0d773bc181a4b885d0732ee2393b4473f90689e (patch)
treeadce6a3e8dcfa6258b708f7615ca98e81be7a10e /indra
parent19bc1ee671df2f89d990dfe8aadea1d9ea424e82 (diff)
MAINT-4254 FIXED Don't change selection in Inventory panel when image's uuid is null.
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/lltexturectrl.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/lltexturectrl.cpp b/indra/newview/lltexturectrl.cpp
index c12753acb0..b9eb68556d 100755
--- a/indra/newview/lltexturectrl.cpp
+++ b/indra/newview/lltexturectrl.cpp
@@ -240,7 +240,7 @@ void LLFloaterTexturePicker::setImageID(const LLUUID& image_id)
mViewModel->setDirty(); // *TODO: shouldn't we be using setValue() here?
mImageAssetID = image_id;
LLUUID item_id = findItemID(mImageAssetID, FALSE);
- if (item_id.isNull())
+ if (image_id.isNull())
{
mInventoryPanel->getRootFolder()->clearSelection();
}
@@ -461,7 +461,10 @@ BOOL LLFloaterTexturePicker::postBuild()
// don't put keyboard focus on selected item, because the selection callback
// will assume that this was user input
- mInventoryPanel->setSelection(findItemID(mImageAssetID, FALSE), TAKE_FOCUS_NO);
+ if(!mImageAssetID.isNull())
+ {
+ mInventoryPanel->setSelection(findItemID(mImageAssetID, FALSE), TAKE_FOCUS_NO);
+ }
}
mModeSelector = getChild<LLRadioGroup>("mode_selection");