[longomatch] Fix deserialization of old templates



commit 0cdfae834997d298f58ae29f8b0d55a5e31b0908
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sat Nov 29 15:32:25 2014 +0100

    Fix deserialization of old templates

 .../Core/Templates/CategoriesTemplate.cs           |    1 +
 .../Core/Templates/TeamTemplate.cs                 |    1 +
 LongoMatch.Migration/Program.cs                    |    2 +-
 3 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Migration/Core/Templates/CategoriesTemplate.cs 
b/LongoMatch.Migration/Core/Templates/CategoriesTemplate.cs
index 22d9209..682e5d5 100644
--- a/LongoMatch.Migration/Core/Templates/CategoriesTemplate.cs
+++ b/LongoMatch.Migration/Core/Templates/CategoriesTemplate.cs
@@ -45,6 +45,7 @@ namespace LongoMatch.Store.Templates
        {
                /* Database additions */
                GameUnitsList gameUnits;
+               Version version;
                byte[] fieldImage, halfFieldImage, goalImage ;
 
                /// <summary>
diff --git a/LongoMatch.Migration/Core/Templates/TeamTemplate.cs 
b/LongoMatch.Migration/Core/Templates/TeamTemplate.cs
index 94a41f9..c299b96 100644
--- a/LongoMatch.Migration/Core/Templates/TeamTemplate.cs
+++ b/LongoMatch.Migration/Core/Templates/TeamTemplate.cs
@@ -37,6 +37,7 @@ namespace LongoMatch.Store.Templates
                private byte[] thumbnailBuf;
                private const int MAX_WIDTH=100;
                private const int MAX_HEIGHT=100;
+               Version version;
                
                public TeamTemplate () {
                        init (Guid.NewGuid ());
diff --git a/LongoMatch.Migration/Program.cs b/LongoMatch.Migration/Program.cs
index e8b705b..19ba17a 100644
--- a/LongoMatch.Migration/Program.cs
+++ b/LongoMatch.Migration/Program.cs
@@ -25,7 +25,7 @@ namespace LongoMatch.Migration
        {
                public static void Main (string[] args)
                {
-                       SetupBasedir ();
+                       LongoMatch.Config.Init ();
                        InitGtk ();
                        MainWindow win = new MainWindow ();
                        win.Show ();


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