[longomatch] Fix projects deletion
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix projects deletion
- Date: Wed, 1 Apr 2015 20:39:37 +0000 (UTC)
commit f59f933d1cf2cb275ccb334ecad64078eb74771f
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Apr 1 21:39:56 2015 +0200
Fix projects deletion
LongoMatch.Services/Services/FileDB.cs | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch.Services/Services/FileDB.cs b/LongoMatch.Services/Services/FileDB.cs
index 688be03..e84bb6c 100644
--- a/LongoMatch.Services/Services/FileDB.cs
+++ b/LongoMatch.Services/Services/FileDB.cs
@@ -246,10 +246,10 @@ namespace LongoMatch.DB
public bool Add (ProjectDescription desc)
{
- if (ProjectsDict.ContainsKey (desc.ID)) {
- ProjectsDict [desc.ID] = desc;
+ if (ProjectsDict.ContainsKey (desc.ProjectID)) {
+ ProjectsDict [desc.ProjectID] = desc;
} else {
- ProjectsDict.Add (desc.ID, desc);
+ ProjectsDict.Add (desc.ProjectID, desc);
}
return Save ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]