From 95df0baeae531fbe01fceed7c58caa35c1203e4f Mon Sep 17 00:00:00 2001 From: Louis-Claude Canon Date: Mon, 9 Jul 2012 09:48:35 +0200 Subject: [PATCH] Bug #1022 - Fix initialization of Task variables when parsing from a string. - Correction on default colors. --- src/Config.cpp | 3 ++- src/E9.cpp | 1 - src/Task.cpp | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Config.cpp b/src/Config.cpp index c1ac85ae7..f03c156c0 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -207,7 +207,7 @@ std::string Config::_defaults = "color.pri.L=rgb245 # Color of priority:L tasks\n" "color.tagged=rgb031 # Color of tagged tasks\n" "color.blocked=white on color8 # Color of blocked tasks\n" - "color.blocking=white on color7 # Color of blocking tasks\n" + "color.blocking=white on color6 # Color of blocking tasks\n" "#color.completed=on blue # Color of completed tasks\n" "#color.deleted=on blue # Color of deleted tasks\n" #else @@ -261,6 +261,7 @@ std::string Config::_defaults = "color.pri.L= # Color of priority:L tasks\n" "color.tagged=green # Color of tagged tasks\n" "color.blocked=black on white # Color of blocked tasks\n" + "color.blocking=black on bright white # Color of blocking tasks\n" "#color.completed=on blue # Color of completed tasks\n" "#color.deleted=on blue # Color of deleted tasks\n" #endif diff --git a/src/E9.cpp b/src/E9.cpp index 2e9b2f512..406533df1 100644 --- a/src/E9.cpp +++ b/src/E9.cpp @@ -27,7 +27,6 @@ #define L10N // Localization complete. -//#include #include #include #include diff --git a/src/Task.cpp b/src/Task.cpp index d959ef1a9..522e3d276 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -150,6 +150,8 @@ Task::Task (const std::string& input) id = 0; urgency_value = 0.0; recalc_urgency = true; + is_blocked = false; + is_blocking = false; parse (input); }