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
@@ -901,25 +901,26 @@ void MainWindow::beam( int uid) {
void MainWindow::show( int uid ) {
m_todoMgr.load(); // might not be loaded yet
m_showing = true;
slotShow( uid );
raise();
QPEApplication::setKeepRunning();
}
void MainWindow::edit( int uid ) {
m_todoMgr.load();
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);
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...
// but only call if we changed something -zecke
populateCategories();