summaryrefslogtreecommitdiff
path: root/core/pim/todo/todotable.cpp
authorzecke <zecke>2002-04-28 08:46:50 (UTC)
committer zecke <zecke>2002-04-28 08:46:50 (UTC)
commitee6fdf8783f7a2fa91792e2f0ce0f8350f8cac0d (patch) (side-by-side diff)
treebdd4764fc90df1214a728eef6aacc3c2b3bb2ebb /core/pim/todo/todotable.cpp
parentf68f837aec3d6ddd24c2281cadc02bda5d8678e1 (diff)
downloadopie-ee6fdf8783f7a2fa91792e2f0ce0f8350f8cac0d.zip
opie-ee6fdf8783f7a2fa91792e2f0ce0f8350f8cac0d.tar.gz
opie-ee6fdf8783f7a2fa91792e2f0ce0f8350f8cac0d.tar.bz2
Patch from Stefan Eilers to raise the Tablewidget when searching and finding ;)
Diffstat (limited to 'core/pim/todo/todotable.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/todotable.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/pim/todo/todotable.cpp b/core/pim/todo/todotable.cpp
index 753c036..dc60cc4 100644
--- a/core/pim/todo/todotable.cpp
+++ b/core/pim/todo/todotable.cpp
@@ -598,7 +598,8 @@ void TodoTable::loadFile( const QString &/*we use the standard*/ )
ToDoDB todoDB;
QValueList<ToDoEvent> vaList = todoDB.rawToDos();
for(QValueList<ToDoEvent>::ConstIterator it = vaList.begin(); it != vaList.end(); ++it ){
- list.append( new ToDoEvent( (*it) ) );
+ ToDoEvent *event = new ToDoEvent( (*it) );
+ list.append( event );
}
vaList.clear();
// qDebug("parsing done=%d", t.elapsed() );
@@ -640,8 +641,8 @@ void TodoTable::journalFreeReplaceEntry( const ToDoEvent &todo, int row )
if (showDeadl){
static_cast<DueTextItem*>(item(row,3))->setToDoEvent(&todo );
}
-
- todoList.insert( static_cast<CheckItem*>(item(row,0)), new ToDoEvent(todo) );
+ ToDoEvent *ev = new ToDoEvent( todo );
+ todoList.insert( static_cast<CheckItem*>(item(row,0)), new ToDoEvent(ev) );
}
}