[longomatch] Always make the dictionary available
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Always make the dictionary available
- Date: Fri, 17 Apr 2015 16:21:29 +0000 (UTC)
commit ca8d759247dfaecb9dc91d018060e20e866176c0
Author: Jorge Zapata <jorgeluis zapata gmail com>
Date: Fri Apr 10 16:04:04 2015 +0200
Always make the dictionary available
.../Gui/Component/SynchronizationWidget.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/SynchronizationWidget.cs
b/LongoMatch.GUI/Gui/Component/SynchronizationWidget.cs
index 6ccacbf..16e0e70 100644
--- a/LongoMatch.GUI/Gui/Component/SynchronizationWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/SynchronizationWidget.cs
@@ -209,6 +209,7 @@ namespace LongoMatch.Gui.Component
file = fileSet.FirstOrDefault ();
duration = file.Duration;
pDuration = new Time (duration.MSeconds / gamePeriods.Count);
+ periodsDict = new Dictionary <Period, Period> ();
// If no periods are provided create from dashboard
if (project.Periods == null || project.Periods.Count == 0) {
periods = new List<Period> ();
@@ -222,7 +223,6 @@ namespace LongoMatch.Gui.Component
}
value.Periods = periods;
} else {
- periodsDict = new Dictionary <Period, Period> ();
foreach (Period p in project.Periods) {
Period newp = new Period { Name = p.Name };
newp.Nodes.Add (p.PeriodNode);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]