summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-05-13 21:56:32 (UTC)
committer harlekin <harlekin>2002-05-13 21:56:32 (UTC)
commit654f18b7201655379a515d12e30e06de4ae2e564 (patch) (side-by-side diff)
tree7faec6092629ab4a9387c7d9b9633ae6ea6e6115
parentaddcce2881f07c1f04113e4df2ec7e4186d4cee4 (diff)
downloadopie-654f18b7201655379a515d12e30e06de4ae2e564.zip
opie-654f18b7201655379a515d12e30e06de4ae2e564.tar.gz
opie-654f18b7201655379a515d12e30e06de4ae2e564.tar.bz2
serveral bugfixes regarding todo section
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/changelog4
-rw-r--r--core/pim/today/opie-today.control2
-rw-r--r--core/pim/today/today.cpp12
3 files changed, 11 insertions, 7 deletions
diff --git a/core/pim/today/changelog b/core/pim/today/changelog
index c687cea..93bbcac 100644
--- a/core/pim/today/changelog
+++ b/core/pim/today/changelog
@@ -1,3 +1,7 @@
+0.3.4
+
+* Several bugfixes regarding todo section.
+
0.3.3
* Changed the logo so it better scales to bigger display and also
diff --git a/core/pim/today/opie-today.control b/core/pim/today/opie-today.control
index da9d9fa..46c0d71 100644
--- a/core/pim/today/opie-today.control
+++ b/core/pim/today/opie-today.control
@@ -3,7 +3,7 @@ Priority: optional
Section: opie/applications
Maintainer: Maximilian Reiß <max.reiss@gmx.de>
Architecture: arm
-Version: 0.3.3-$SUB_VERSION
+Version: 0.3.4-$SUB_VERSION
Depends: opie-base ($QPE_VERSION), libopie ($QPE_VERSION)
License: GPL
Description: today screen
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<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;
// not the overdues, we allready got them, and not if we are