[longomatch/redesign3] Hack to fix Drawing objects not beeing deleted from the DB
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign3] Hack to fix Drawing objects not beeing deleted from the DB
- Date: Thu, 18 Aug 2011 00:19:59 +0000 (UTC)
commit 66dc2e7658c30c9aedcf40dbea2969a0e6da32e3
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Aug 18 02:13:35 2011 +0200
Hack to fix Drawing objects not beeing deleted from the DB
LongoMatch/Store/DrawingsList.cs | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch/Store/DrawingsList.cs b/LongoMatch/Store/DrawingsList.cs
index d630608..9bc24d9 100644
--- a/LongoMatch/Store/DrawingsList.cs
+++ b/LongoMatch/Store/DrawingsList.cs
@@ -22,8 +22,9 @@ using System.Collections.Generic;
namespace LongoMatch.Store
{
-
- public class DrawingsList: SortedList<int, Drawing>
+ /* FIXME: This should be a sorted list, but db4o doesn't delete Drawing objects
+ * in that case */
+ public class DrawingsList: Dictionary<int, Drawing>
{
public DrawingsList() {}
@@ -60,6 +61,7 @@ namespace LongoMatch.Store
return base.Remove(drawing.RenderTime);
}
+ /*
/// <summary>
/// Gets the render time for a drawing at a position in the list
/// </summary>
@@ -85,5 +87,6 @@ namespace LongoMatch.Store
public Drawing GetRenderDrawing(int index) {
return Values[index];
}
+ */
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]