# HG changeset patch # User Raimund Renkert # Date 1327417128 0 # Node ID 28e514c968d65c6e12070c94a466b6b8f164f160 # Parent 92f81eac034ada920ccc195e90d2c632a373a6ec Suppress onCollectionChange event if an artifact is added to the collection to avoid loading maps twice. flys-client/trunk@3757 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 92f81eac034a -r 28e514c968d6 flys-client/ChangeLog --- a/flys-client/ChangeLog Tue Jan 24 12:43:06 2012 +0000 +++ b/flys-client/ChangeLog Tue Jan 24 14:58:48 2012 +0000 @@ -1,3 +1,10 @@ +2012-01-24 Raimund Renkert + + * src/main/java/de/intevation/flys/client/client/ui/CollectionView.java: + Suppress onCollectionChange event if an artifact is added to the collection + to avoid loading maps twice. The event is triggered by the + describeCollection call. + 2012-01-24 Raimund Renkert * src/main/java/de/intevation/flys/client/client/ui/DistancePanel.java, diff -r 92f81eac034a -r 28e514c968d6 flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java Tue Jan 24 12:43:06 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java Tue Jan 24 14:58:48 2012 +0000 @@ -596,7 +596,7 @@ public void onSuccess(Collection newCollection) { GWT.log("Successfully added artifacts."); - setCollection(newCollection); + setCollection(newCollection, true); } } );