[longomatch] Initialize tags list form compatibility with older projects
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [longomatch] Initialize tags list form compatibility with older projects
- Date: Thu, 7 Jan 2010 21:23:43 +0000 (UTC)
commit 43ea340d140a56dc6852c83cc6ffd0b9024708a5
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Jan 7 22:22:51 2010 +0100
Initialize tags list form compatibility with older projects
LongoMatch/Time/MediaTimeNode.cs | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch/Time/MediaTimeNode.cs b/LongoMatch/Time/MediaTimeNode.cs
index fbe641f..c4625ef 100644
--- a/LongoMatch/Time/MediaTimeNode.cs
+++ b/LongoMatch/Time/MediaTimeNode.cs
@@ -255,6 +255,9 @@ namespace LongoMatch.TimeNodes
/// </value>
public List<Tag> Tags{
get{
+ //From 0.10.5
+ if (tagsList == null)
+ tagsList = new List<Tag>();
return tagsList;
}
set{
@@ -347,9 +350,9 @@ namespace LongoMatch.TimeNodes
public override string ToString ()
{
- String[] tags = new String[tagsList.Count];
- for (int i=0; i<tagsList.Count; i++)
- tags[i] = tagsList[i].Text;
+ String[] tags = new String[Tags.Count];
+ for (int i=0; i<Tags.Count; i++)
+ tags[i] = Tags[i].Text;
return "<b>"+Catalog.GetString("Name")+": </b>"+Name+"\n"+
"<b>"+Catalog.GetString("Team")+": </b>"+Team.ToString().ToLower()+"\n"+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]