[longomatch] Use the new name we have for the template
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Use the new name we have for the template
- Date: Tue, 28 Oct 2014 09:48:40 +0000 (UTC)
commit 966f150f32757b4154404834b94ce9236b61f61c
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Oct 16 18:57:07 2014 +0200
Use the new name we have for the template
LongoMatch.GUI/Gui/Panel/SportsTemplatesPanel.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Panel/SportsTemplatesPanel.cs
b/LongoMatch.GUI/Gui/Panel/SportsTemplatesPanel.cs
index 5623550..7c35f34 100644
--- a/LongoMatch.GUI/Gui/Panel/SportsTemplatesPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/SportsTemplatesPanel.cs
@@ -172,7 +172,7 @@ namespace LongoMatch.Gui.Panel
string newName;
while (true) {
newName = Config.GUIToolkit.QueryMessage (Catalog.GetString
("Name:"), null,
- loadedTemplate.Name + "
_copy", this);
+ loadedTemplate.Name +
"_copy", this);
if (newName == null)
break;
if (provider.TemplatesNames.Contains (newName)) {
@@ -187,7 +187,7 @@ namespace LongoMatch.Gui.Panel
return;
}
Dashboard newtemplate = loadedTemplate.Clone ();
- newtemplate.Name = loadedTemplate.Name + "_copy";
+ newtemplate.Name = newName;
newtemplate.Static = false;
provider.Save (newtemplate);
Load (newtemplate.Name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]