[tasque/transition: 193/213] [libtasque] Task: Make CompletionDate setter protected
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/transition: 193/213] [libtasque] Task: Make CompletionDate setter protected
- Date: Wed, 29 Aug 2012 18:50:15 +0000 (UTC)
commit 1eaffb57bb74b9be7c901cf56032998f471bce79
Author: Antonius Riha <antoniusriha gmail com>
Date: Sun Aug 19 11:41:50 2012 +0200
[libtasque] Task: Make CompletionDate setter protected
src/Tasque.Gtk/TaskTreeView.cs | 9 ++-------
src/libtasque/Task.cs | 2 +-
2 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/Tasque.Gtk/TaskTreeView.cs b/src/Tasque.Gtk/TaskTreeView.cs
index 9a7ea61..01b622f 100644
--- a/src/Tasque.Gtk/TaskTreeView.cs
+++ b/src/Tasque.Gtk/TaskTreeView.cs
@@ -781,13 +781,8 @@ namespace Tasque
Console.WriteLine ("task.State {0}", task.State);
- if (task.State == TaskState.Completed) {
- // Modify the completion date
- task.CompletionDate = newDate;
- } else {
- // Modify the due date
- task.DueDate = newDate;
- }
+ // Modify the due date
+ task.DueDate = newDate;
}
void OnRowInsertedHandler ()
diff --git a/src/libtasque/Task.cs b/src/libtasque/Task.cs
index bfb1cc0..56445cb 100644
--- a/src/libtasque/Task.cs
+++ b/src/libtasque/Task.cs
@@ -72,7 +72,7 @@ namespace Tasque
public DateTime CompletionDate
{
get { return completionDate; }
- set {
+ protected set {
if (value != completionDate) {
Debug.WriteLine ("Setting new task completion date");
completionDate = value;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]