author | eilers <eilers> | 2004-04-28 09:23:28 (UTC) |
---|---|---|
committer | eilers <eilers> | 2004-04-28 09:23:28 (UTC) |
commit | 8af6d533817ddc490c9d19344c7f0fa83239831e (patch) (unidiff) | |
tree | e25fcc93a4949f32e389aad8212051c093108b1a | |
parent | 134b7accd6bdc8fbc160a42f7c52c585e73f4add (diff) | |
download | opie-8af6d533817ddc490c9d19344c7f0fa83239831e.zip opie-8af6d533817ddc490c9d19344c7f0fa83239831e.tar.gz opie-8af6d533817ddc490c9d19344c7f0fa83239831e.tar.bz2 |
Removed static cast which is not working with the new modifications of
the opie-pim api
-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 | |||
@@ -910,7 +910,8 @@ void MainWindow::edit( int uid ) { | |||
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); |