[longomatch] Make sure to delete the previous file
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Make sure to delete the previous file
- Date: Fri, 17 Apr 2015 16:27:32 +0000 (UTC)
commit bf2c135faf96af043e2b971bdc9a12c257beffe6
Author: Jorge Zapata <jorgeluis zapata gmail com>
Date: Wed Apr 15 16:42:09 2015 +0200
Make sure to delete the previous file
LongoMatch.GUI/Gui/Panel/SportsTemplatesPanel.cs | 1 +
LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Panel/SportsTemplatesPanel.cs
b/LongoMatch.GUI/Gui/Panel/SportsTemplatesPanel.cs
index e60a6bf..e084615 100644
--- a/LongoMatch.GUI/Gui/Panel/SportsTemplatesPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/SportsTemplatesPanel.cs
@@ -435,6 +435,7 @@ namespace LongoMatch.Gui.Panel
} else {
try {
Dashboard dashboard = provider.Load (name);
+ provider.Delete (name);
dashboard.Name = args.NewText;
provider.Save (dashboard);
// Change displayed name and template name in our store
diff --git a/LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs b/LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs
index 4f51942..8df54e5 100644
--- a/LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs
@@ -380,6 +380,7 @@ namespace LongoMatch.Gui.Panel
} else {
try {
Team team = provider.Load (name);
+ provider.Delete (name);
team.Name = args.NewText;
provider.Save (team);
teams.SetValue (iter, 1, args.NewText);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]