[tasque/transition: 204/213] [Tasque.Gtk] Fix NRE on add task when all category is selected (again)
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/transition: 204/213] [Tasque.Gtk] Fix NRE on add task when all category is selected (again)
- Date: Wed, 29 Aug 2012 18:51:10 +0000 (UTC)
commit bbc9d2e8f8c55937cdac29e813436ddd50c97947
Author: Antonius Riha <antoniusriha gmail com>
Date: Sun Aug 19 21:45:38 2012 +0200
[Tasque.Gtk] Fix NRE on add task when all category is selected (again)
src/Tasque.Gtk/TaskWindow.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/Tasque.Gtk/TaskWindow.cs b/src/Tasque.Gtk/TaskWindow.cs
index 33721b5..97e929f 100644
--- a/src/Tasque.Gtk/TaskWindow.cs
+++ b/src/Tasque.Gtk/TaskWindow.cs
@@ -767,6 +767,8 @@ namespace Tasque
private Task CreateTask (string taskText, Category category)
{
Task task = backend.CreateTask (taskText);
+ if (category == null)
+ category = GtkApplication.Instance.Backend.DefaultCategory;
category.Add (task);
if (task == null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]