summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaulgproductengine <none@none>2012-02-23 20:07:44 +0200
committerpaulgproductengine <none@none>2012-02-23 20:07:44 +0200
commitd60ef2f3352404ce37d22ca346af47f8e4c93d79 (patch)
tree5690e6f09875d20c8305345a52466f0cdf3b802a
parentaf83268a7b45ed6f5ee785e1671b0212d20ef47a (diff)
EXP-1909 FIXED (Pasted gesture displayed twice)
- Refreshing gesture list after an item was copied
-rw-r--r--indra/newview/llfloatergesture.cpp6
1 files changed, 6 insertions, 0 deletions
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();
}
}
};