From 5e2e1e70e6cc7cadce96e42f83951b87e3f2209e Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 21 Oct 2002 13:45:10 +0000 Subject: Fix a bug where newly added items did not show up in the view Now we add the Entry to the backend first and then update the view next step is to make place for the new EditorWidget It features Completed/Start Date State Began, Postponed... Maintainer Mode: needs to be done by... Maintainer: Choose a person who is responsible for ( once implemented I hope he master of our feeds is happy ) Recurrance Widget Alarms + Reminders Widget Parent to be added Most of it is not implemented cause first of all OTodo does not know anything about these attributes but this will change soon. I'll start to implement it very soon --- (limited to 'core/pim/todo/mainwindow.cpp') diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index 8377573..bf9fc23 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp @@ -426,8 +426,9 @@ void MainWindow::slotNew() { if ( currentEditor()->accepted() ) { //todo.assignUid(); - currentView()->addEvent( todo ); m_todoMgr.add( todo ); + currentView()->addEvent( todo ); + // I'm afraid we must call this every time now, otherwise // spend expensive time comparing all these strings... -- cgit v0.9.0.2