From 654f18b7201655379a515d12e30e06de4ae2e564 Mon Sep 17 00:00:00 2001 From: harlekin Date: Mon, 13 May 2002 21:56:32 +0000 Subject: serveral bugfixes regarding todo section --- (limited to 'core/pim/today/today.cpp') 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 @@ -82,8 +82,8 @@ Today::Today( QWidget* parent, const char* name, WFlags fl ) db = NULL; setOwnerField(); todo = new ToDoDB; - getTodo(); draw(); + getTodo(); autoStart(); } @@ -154,7 +154,7 @@ void Today::draw() { getMail(); // 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; getTodo(); @@ -389,10 +389,10 @@ void Today::getTodo() { } // get total number of still open todos - QValueList open = todo->rawToDos(); - qBubbleSort(open); - for ( QValueList::Iterator it=open.begin(); - it!=open.end(); ++it ) { + QValueList openTodo = todo->rawToDos(); + qBubbleSort(openTodo); + for ( QValueList::Iterator it=openTodo.begin(); + it!=openTodo.end(); ++it ) { if (!(*it).isCompleted()){ count +=1; // not the overdues, we allready got them, and not if we are -- cgit v0.9.0.2