[longomatch] Set sort method from the correct place



commit d1bf94c65c6b305a34633408c1521d003b751192
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Sep 7 13:41:02 2014 +0200

    Set sort method from the correct place

 LongoMatch.GUI/Gui/Component/CategoryProperties.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/CategoryProperties.cs 
b/LongoMatch.GUI/Gui/Component/CategoryProperties.cs
index a3fd6fb..7f8cd8c 100644
--- a/LongoMatch.GUI/Gui/Component/CategoryProperties.cs
+++ b/LongoMatch.GUI/Gui/Component/CategoryProperties.cs
@@ -203,9 +203,9 @@ namespace LongoMatch.Gui.Component
                                SetPositionCombo (hfieldcombobox, eventButton.EventType.TagHalfFieldPosition,
                                                  eventButton.EventType.HalfFieldPositionIsDistance);
                                SetPositionCombo (goalcombobox, eventButton.EventType.TagGoalPosition, false);
+                               sortmethodcombobox.Active = (int)eventButton.EventType.SortMethod;
                        }
                        if (catButton != null) {
-                               sortmethodcombobox.Active = (int)catButton.AnalysisEventType.SortMethod;
                                tagscheckbutton.Active = catButton.ShowSubcategories;
                                tprbutton.Value = catButton.TagsPerRow;
                        }
@@ -338,7 +338,7 @@ namespace LongoMatch.Gui.Component
                        if (ignore)
                                return;
 
-                       catButton.EventType.SortMethodString = sortmethodcombobox.ActiveText;
+                       eventButton.EventType.SortMethodString = sortmethodcombobox.ActiveText;
                        Edited = true;
                }
 


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