-rw-r--r-- | core/pim/todo/todotable.cpp | 4 | ||||
-rw-r--r-- | core/pim/todo/todotable.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/core/pim/todo/todotable.cpp b/core/pim/todo/todotable.cpp index 779b28c..15f733b 100644 --- a/core/pim/todo/todotable.cpp +++ b/core/pim/todo/todotable.cpp @@ -233,2 +233,3 @@ TodoTable::TodoTable( QWidget *parent, const char *name ) { + setNumRows(0); mCat.load( categoryFileName() ); @@ -454,2 +455,5 @@ void TodoTable::updateVisible() ToDoEvent *t = todoList[ci]; + if (!t) + continue; + QArray<int> vlCats = t->categories(); diff --git a/core/pim/todo/todotable.h b/core/pim/todo/todotable.h index 7539df1..387dddb 100644 --- a/core/pim/todo/todotable.h +++ b/core/pim/todo/todotable.h @@ -194,5 +194,2 @@ inline void TodoTable::insertIntoTable( ToDoEvent *todo, int row ) { - int rows = numRows(); - ++rows; - setNumRows( rows ); QString sortKey = (char) ((todo->isCompleted() ? 'a' : 'A') |