author | harlekin <harlekin> | 2002-05-13 21:56:32 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-05-13 21:56:32 (UTC) |
commit | 654f18b7201655379a515d12e30e06de4ae2e564 (patch) (side-by-side diff) | |
tree | 7faec6092629ab4a9387c7d9b9633ae6ea6e6115 /core/pim/today/today.cpp | |
parent | addcce2881f07c1f04113e4df2ec7e4186d4cee4 (diff) | |
download | opie-654f18b7201655379a515d12e30e06de4ae2e564.zip opie-654f18b7201655379a515d12e30e06de4ae2e564.tar.gz opie-654f18b7201655379a515d12e30e06de4ae2e564.tar.bz2 |
serveral bugfixes regarding todo section
-rw-r--r-- | core/pim/today/today.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 0f4cbdb..4368201 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp @@ -83,6 +83,6 @@ Today::Today( QWidget* parent, const char* name, WFlags fl ) setOwnerField(); todo = new ToDoDB; - getTodo(); draw(); + getTodo(); autoStart(); } @@ -155,5 +155,5 @@ void Today::draw() { // if the todolist.xml file was not modified in between, do not parse it. - if (checkIfModified()) { + if (checkIfModified() || NEW_START==1) { if (todo) delete todo; todo = new ToDoDB; @@ -390,8 +390,8 @@ void Today::getTodo() { // get total number of still open todos - QValueList<ToDoEvent> open = todo->rawToDos(); - qBubbleSort(open); - for ( QValueList<ToDoEvent>::Iterator it=open.begin(); - it!=open.end(); ++it ) { + QValueList<ToDoEvent> openTodo = todo->rawToDos(); + qBubbleSort(openTodo); + for ( QValueList<ToDoEvent>::Iterator it=openTodo.begin(); + it!=openTodo.end(); ++it ) { if (!(*it).isCompleted()){ count +=1; |