[tasque/transition: 176/213] [SQLite] Some fixes for SqliteTask
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/transition: 176/213] [SQLite] Some fixes for SqliteTask
- Date: Wed, 29 Aug 2012 18:48:49 +0000 (UTC)
commit 1319b9dc16f05c893517419ce80624bd771f8067
Author: Antonius Riha <antoniusriha gmail com>
Date: Sat Aug 18 23:46:45 2012 +0200
[SQLite] Some fixes for SqliteTask
src/Addins/SqliteBackend/SqliteTask.cs | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/src/Addins/SqliteBackend/SqliteTask.cs b/src/Addins/SqliteBackend/SqliteTask.cs
index 37db811..50f70cb 100644
--- a/src/Addins/SqliteBackend/SqliteTask.cs
+++ b/src/Addins/SqliteBackend/SqliteTask.cs
@@ -28,18 +28,21 @@ namespace Tasque.Backends.Sqlite
public SqliteTask (SqliteBackend backend, int id, int category, string name,
long dueDate, long completionDate, int priority, int state)
- : base (backend, name)
+ : base (name, TaskNoteSupport.Multiple)
{
this.backend = backend;
this.id = id;
- DueDate = dueDate;
- CompletionDate = completionDate;
- Priority = priority;
- State = state;
+ DueDate = Database.ToDateTime (dueDate);
+ CompletionDate = Database.ToDateTime (completionDate);
+ Priority = (TaskPriority)priority;
+ State = (TaskState)state;
}
protected override void OnNameChanged ()
{
+ if (backend == null)
+ return;
+
var name = backend.SanitizeText (Name);
if (name != Name) {
Name = name;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]