[longomatch] Gui: fix exception filtering model with old filter



commit 4819b00e46b159e1298c8dd76135195fa0a9c06d
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Mar 28 01:59:22 2013 +0100

    Gui: fix exception filtering model with old filter
    
    Set the new filter before updating the models with the new
    project.
    Fixes #696620

 .../Gui/Component/PlaysSelectionWidget.cs          |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/PlaysSelectionWidget.cs 
b/LongoMatch.GUI/Gui/Component/PlaysSelectionWidget.cs
index da1a312..61ec087 100644
--- a/LongoMatch.GUI/Gui/Component/PlaysSelectionWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/PlaysSelectionWidget.cs
@@ -61,17 +61,17 @@ namespace LongoMatch.Gui.Component
                        playsList.ProjectIsLive = isLive;
                        localPlayersList.ProjectIsLive = isLive;
                        visitorPlayersList.ProjectIsLive = isLive;
+                       playsList.Filter = filter;
+                       localPlayersList.Filter = filter;
+                       visitorPlayersList.Filter = filter;
+                       playersfilter.SetFilter(filter, project);
+                       categoriesfilter.SetFilter(filter, project);
                        playsList.Project=project;
                        visitorPlayersList.Project = project;
                        localPlayersList.Project = project;
                        visitorPlaysList.LabelProp = project.VisitorTeamTemplate.TeamName;
                        localPlaysList.LabelProp = project.LocalTeamTemplate.TeamName;
-                       playsList.Filter = filter;
-                       localPlayersList.Filter = filter;
-                       visitorPlayersList.Filter = filter;
                        UpdateTeamsModels();
-                       playersfilter.SetFilter(filter, project);
-                       categoriesfilter.SetFilter(filter, project);
                }
                
                public void Clear() {


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