From d60ef2f3352404ce37d22ca346af47f8e4c93d79 Mon Sep 17 00:00:00 2001
From: paulgproductengine <none@none>
Date: Thu, 23 Feb 2012 20:07:44 +0200
Subject: EXP-1909 FIXED (Pasted gesture displayed twice)

- Refreshing gesture list after an item was copied
---
 indra/newview/llfloatergesture.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/indra/newview/llfloatergesture.cpp b/indra/newview/llfloatergesture.cpp
index d495f20a9a..9ed9d10c75 100644
--- a/indra/newview/llfloatergesture.cpp
+++ b/indra/newview/llfloatergesture.cpp
@@ -90,6 +90,12 @@ public:
 		if(mFloater)
 		{
 			mFloater->addGesture(inv_item,NULL,mFloater->getChild<LLScrollListCtrl>("gesture_list"));
+
+			// EXP-1909 (Pasted gesture displayed twice)
+			// The problem is that addGesture is called here for the second time for the same item (which is copied)
+			// First time addGesture is called from LLFloaterGestureObserver::changed(), which is a callback for inventory
+			// change. So we need to refresh the gesture list to avoid duplicates.
+			mFloater->refreshAll();
 		}
 	}
 };
-- 
cgit v1.2.3