[longomatch] Ignore changes when loading a player



commit 682317b8432149ada533605d7ce02f1d2a51dde1
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu May 29 15:46:36 2014 +0200

    Ignore changes when loading a player

 LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs 
b/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
index b13ad34..b67d526 100644
--- a/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
+++ b/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
@@ -175,6 +175,7 @@ namespace LongoMatch.Gui.Component
                }
                
                void PlayersSelected (List<Player> players) {
+                       ignoreChanges = true;
                        playerframe.Sensitive = players.Count == 1;
                        selectedPlayers = players;
                        deletebutton.Sensitive = players.Count != 0;
@@ -184,6 +185,7 @@ namespace LongoMatch.Gui.Component
                        } else {
                                loadedPlayer = null;
                        }
+                       ignoreChanges = false;
                }
                
                void DeleteSelectedPlayers () {


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