From 52ce4b922947579337226d7932bcd6ffb931da82 Mon Sep 17 00:00:00 2001
From: Andrew Dyukov <adyukov@productengine.com>
Date: Wed, 2 Dec 2009 14:44:39 +0200
Subject: [PATCH] Fixed normal bug EXT-1625 (Me > Pick Info > Edit Pick does
 not enable "Save" button when image, location is changed). Implemented
 workaround:enabling save button each time when picker is opened, even if
 texture wasn't changed (see Steve's comment).

--HG--
branch : product-engine
---
 indra/newview/llpanelpick.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/indra/newview/llpanelpick.cpp b/indra/newview/llpanelpick.cpp
index da0c8d5020a..541361324a7 100644
--- a/indra/newview/llpanelpick.cpp
+++ b/indra/newview/llpanelpick.cpp
@@ -558,6 +558,11 @@ void LLPanelPickEdit::initTexturePickerMouseEvents()
 	text_icon = getChild<LLIconCtrl>(XML_BTN_ON_TXTR);
 	mSnapshotCtrl->setMouseEnterCallback(boost::bind(&LLPanelPickEdit::onTexturePickerMouseEnter, this, _1));
 	mSnapshotCtrl->setMouseLeaveCallback(boost::bind(&LLPanelPickEdit::onTexturePickerMouseLeave, this, _1));
+	
+	// *WORKAROUND: Needed for EXT-1625: enabling save button each time when picker is opened, even if 
+	// texture wasn't changed (see Steve's comment).
+	mSnapshotCtrl->setMouseDownCallback(boost::bind(&LLPanelPickEdit::enableSaveButton, this, true));
+	
 	text_icon->setVisible(FALSE);
 }
 		
-- 
GitLab