[longomatch] Now that the list contains objects instead of ints we need to deep copy.



commit 1fefb0ae26eb0084b8fdd661f35469efc3b3b5be
Author: Julien Moutte <julien fluendo com>
Date:   Fri Apr 24 12:43:19 2015 +0200

    Now that the list contains objects instead of ints we need to deep copy.
    
    If we don't that the events will be built using the same config instance which will change together with 
the UI.

 LongoMatch.Services/PlayerController.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Services/PlayerController.cs b/LongoMatch.Services/PlayerController.cs
index f112695..d770803 100644
--- a/LongoMatch.Services/PlayerController.cs
+++ b/LongoMatch.Services/PlayerController.cs
@@ -127,7 +127,7 @@ namespace LongoMatch.Services
                        }
                        get {
                                if (camerasConfig != null) {
-                                       return camerasConfig.ToList ();
+                                       return camerasConfig.Clone ();
                                } else {
                                        return null;
                                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]