From 8af6d533817ddc490c9d19344c7f0fa83239831e Mon Sep 17 00:00:00 2001 From: eilers Date: Wed, 28 Apr 2004 09:23:28 +0000 Subject: Removed static cast which is not working with the new modifications of the opie-pim api --- (limited to 'core') 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(rec); -- cgit v0.9.0.2