summaryrefslogtreecommitdiff
authoreilers <eilers>2004-04-28 09:23:28 (UTC)
committer eilers <eilers>2004-04-28 09:23:28 (UTC)
commit8af6d533817ddc490c9d19344c7f0fa83239831e (patch) (side-by-side diff)
treee25fcc93a4949f32e389aad8212051c093108b1a
parent134b7accd6bdc8fbc160a42f7c52c585e73f4add (diff)
downloadopie-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
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp3
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 ) {
slotEdit( uid );
}
void MainWindow::add( const OPimRecord& rec) {
- if ( rec.rtti() != OPimTodo::rtti() ) return;
+ OPimTodo test;
+ if ( rec.rtti() != test.rtti() ) return;
m_todoMgr.load(); // might not be loaded
const OPimTodo& todo = static_cast<const OPimTodo&>(rec);