[longomatch] Use the RemoveButton function to remove invalid links too



commit 6322de7eefffbd8196578a551175f733997ad470
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Apr 14 14:01:01 2015 +0200

    Use the RemoveButton function to remove invalid links too

 LongoMatch.GUI/Gui/Component/DashboardWidget.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/DashboardWidget.cs b/LongoMatch.GUI/Gui/Component/DashboardWidget.cs
index 4e1158c..580fc1f 100644
--- a/LongoMatch.GUI/Gui/Component/DashboardWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/DashboardWidget.cs
@@ -261,7 +261,7 @@ namespace LongoMatch.Gui.Component
                        string msg = Catalog.GetString ("Do you want to delete: ") +
                                     button.Name + "?";
                        if (Config.GUIToolkit.QuestionMessage (msg, null, this)) {
-                               template.List.Remove (button);
+                               template.RemoveButton (button);
                                Edited = true;
                                Refresh ();
                        }


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