-rw-r--r-- | core/pim/todo/mainwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index 924fde1..2002e87 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp | |||
@@ -905,17 +905,18 @@ void MainWindow::show( int uid ) { | |||
905 | raise(); | 905 | raise(); |
906 | QPEApplication::setKeepRunning(); | 906 | QPEApplication::setKeepRunning(); |
907 | } | 907 | } |
908 | void MainWindow::edit( int uid ) { | 908 | void MainWindow::edit( int uid ) { |
909 | m_todoMgr.load(); | 909 | m_todoMgr.load(); |
910 | slotEdit( uid ); | 910 | slotEdit( uid ); |
911 | } | 911 | } |
912 | void MainWindow::add( const OPimRecord& rec) { | 912 | void MainWindow::add( const OPimRecord& rec) { |
913 | if ( rec.rtti() != OPimTodo::rtti() ) return; | 913 | OPimTodo test; |
914 | if ( rec.rtti() != test.rtti() ) return; | ||
914 | m_todoMgr.load(); // might not be loaded | 915 | m_todoMgr.load(); // might not be loaded |
915 | 916 | ||
916 | const OPimTodo& todo = static_cast<const OPimTodo&>(rec); | 917 | const OPimTodo& todo = static_cast<const OPimTodo&>(rec); |
917 | 918 | ||
918 | m_todoMgr.add(todo ); | 919 | m_todoMgr.add(todo ); |
919 | currentView()->addEvent( todo ); | 920 | currentView()->addEvent( todo ); |
920 | 921 | ||
921 | 922 | ||