[longomatch] Fix check deleting the default team



commit d54949e809a8856fbf7a9b61d7f278ed9acb26e6
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Nov 27 15:12:33 2014 +0100

    Fix check deleting the default team

 LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs b/LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs
index 4c60bb0..af20428 100644
--- a/LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs
@@ -247,6 +247,7 @@ namespace LongoMatch.Gui.Panel
                                if (loadedTeam.Name == "default") {
                                        MessagesHelpers.ErrorMessage (this,
                                                                      Catalog.GetString ("The default team 
can't be deleted"));
+                                       return;
                                }
                                string msg = Catalog.GetString ("Do you really want to delete the template: 
") + loadedTeam.Name;
                                if (MessagesHelpers.QuestionMessage (this, msg, null)) {


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