- Fix initialization of Task variables when parsing from a string.
- Correction on default colors.
This commit is contained in:
Louis-Claude Canon 2012-07-09 09:48:35 +02:00 committed by Paul Beckingham
parent c8ce91e4be
commit 95df0baeae
3 changed files with 4 additions and 2 deletions

View file

@ -207,7 +207,7 @@ std::string Config::_defaults =
"color.pri.L=rgb245 # Color of priority:L tasks\n" "color.pri.L=rgb245 # Color of priority:L tasks\n"
"color.tagged=rgb031 # Color of tagged tasks\n" "color.tagged=rgb031 # Color of tagged tasks\n"
"color.blocked=white on color8 # Color of blocked 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.completed=on blue # Color of completed tasks\n"
"#color.deleted=on blue # Color of deleted tasks\n" "#color.deleted=on blue # Color of deleted tasks\n"
#else #else
@ -261,6 +261,7 @@ std::string Config::_defaults =
"color.pri.L= # Color of priority:L tasks\n" "color.pri.L= # Color of priority:L tasks\n"
"color.tagged=green # Color of tagged tasks\n" "color.tagged=green # Color of tagged tasks\n"
"color.blocked=black on white # Color of blocked 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.completed=on blue # Color of completed tasks\n"
"#color.deleted=on blue # Color of deleted tasks\n" "#color.deleted=on blue # Color of deleted tasks\n"
#endif #endif

View file

@ -27,7 +27,6 @@
#define L10N // Localization complete. #define L10N // Localization complete.
//#include <iostream>
#include <stdlib.h> #include <stdlib.h>
#include <Context.h> #include <Context.h>
#include <Date.h> #include <Date.h>

View file

@ -150,6 +150,8 @@ Task::Task (const std::string& input)
id = 0; id = 0;
urgency_value = 0.0; urgency_value = 0.0;
recalc_urgency = true; recalc_urgency = true;
is_blocked = false;
is_blocking = false;
parse (input); parse (input);
} }