summaryrefslogtreecommitdiff
path: root/core/pim/todo
Side-by-side diff
Diffstat (limited to 'core/pim/todo') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp3
-rw-r--r--core/pim/todo/todotable.cpp3
2 files changed, 3 insertions, 3 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp
index a28fc3e..294f37c 100644
--- a/core/pim/todo/mainwindow.cpp
+++ b/core/pim/todo/mainwindow.cpp
@@ -372,7 +372,7 @@ void TodoWindow::slotEdit()
}
ToDoEvent todo = table->currentEntry();
-
+ qWarning("slotEdit" );
NewTaskDialog e( todo, this, 0, TRUE );
e.setCaption( tr( "Edit Task" ) );
@@ -382,6 +382,7 @@ void TodoWindow::slotEdit()
int ret = e.exec();
if ( ret == QDialog::Accepted ) {
+ qWarning("Replacing now" );
table->setPaintingEnabled( false );
todo = e.todoEntry();
table->replaceCurrentEntry( todo );
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
@@ -641,8 +641,7 @@ void TodoTable::journalFreeReplaceEntry( const ToDoEvent &todo, int row )
if (showDeadl){
static_cast<DueTextItem*>(item(row,3))->setToDoEvent(&todo );
}
- ToDoEvent *ev = new ToDoEvent( todo );
- todoList.insert( static_cast<CheckItem*>(item(row,0)), new ToDoEvent(ev) );
+ todoList.insert( static_cast<CheckItem*>(item(row,0)), new ToDoEvent(todo) );
}
}