summaryrefslogtreecommitdiff
path: root/core/pim/todo/todotable.cpp
Unidiff
Diffstat (limited to 'core/pim/todo/todotable.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/todotable.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/pim/todo/todotable.cpp b/core/pim/todo/todotable.cpp
index dc60cc4..208a084 100644
--- a/core/pim/todo/todotable.cpp
+++ b/core/pim/todo/todotable.cpp
@@ -632,26 +632,25 @@ void TodoTable::journalFreeReplaceEntry( const ToDoEvent &todo, int row )
632 } 632 }
633 } else { 633 } else {
634 ToDoEvent *t = todoList[static_cast<CheckItem*>(item(row, 0))]; 634 ToDoEvent *t = todoList[static_cast<CheckItem*>(item(row, 0))];
635 todoList.remove( static_cast<CheckItem*>(item(row, 0)) ); 635 todoList.remove( static_cast<CheckItem*>(item(row, 0)) );
636 delete t; 636 delete t;
637 static_cast<CheckItem*>(item(row, 0))->setChecked( todo.isCompleted() ); 637 static_cast<CheckItem*>(item(row, 0))->setChecked( todo.isCompleted() );
638 static_cast<ComboItem*>(item(row, 1))->setText( QString::number(todo.priority()) ); 638 static_cast<ComboItem*>(item(row, 1))->setText( QString::number(todo.priority()) );
639 item( row, 2 )->setText( strTodo ); 639 item( row, 2 )->setText( strTodo );
640 640
641 if (showDeadl){ 641 if (showDeadl){
642 static_cast<DueTextItem*>(item(row,3))->setToDoEvent(&todo ); 642 static_cast<DueTextItem*>(item(row,3))->setToDoEvent(&todo );
643 } 643 }
644 ToDoEvent *ev = new ToDoEvent( todo ); 644 todoList.insert( static_cast<CheckItem*>(item(row,0)), new ToDoEvent(todo) );
645 todoList.insert( static_cast<CheckItem*>(item(row,0)), new ToDoEvent(ev) );
646 } 645 }
647} 646}
648 647
649void TodoTable::journalFreeRemoveEntry( int row ) 648void TodoTable::journalFreeRemoveEntry( int row )
650{ 649{
651 CheckItem *chk; 650 CheckItem *chk;
652 chk = static_cast<CheckItem*>(item(row, 0 )); 651 chk = static_cast<CheckItem*>(item(row, 0 ));
653 if ( !chk ) 652 if ( !chk )
654 return; 653 return;
655 todoList.remove( chk ); 654 todoList.remove( chk );
656 655
657 realignTable( row ); 656 realignTable( row );