-rw-r--r-- | libkcal/calendarlocal.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libkcal/calendarlocal.cpp b/libkcal/calendarlocal.cpp index 09ce9f0..e464a77 100644 --- a/libkcal/calendarlocal.cpp +++ b/libkcal/calendarlocal.cpp @@ -214,3 +214,3 @@ QPtrList<Todo> CalendarLocal::rawTodos() } -Todo *CalendarLocal::todo( int id ) +Todo *CalendarLocal::todo( QString syncProf, int id ) { @@ -218,3 +218,3 @@ Todo *CalendarLocal::todo( int id ) for ( todo = mTodoList.first(); todo; todo = mTodoList.next() ) { - if ( todo->zaurusId() == id ) return todo; + if ( todo->getID( syncProf ) == id ) return todo; } @@ -237,3 +237,3 @@ QPtrList<Event> CalendarLocal::getExternLastSyncEvents() } -Event *CalendarLocal::event( int id ) +Event *CalendarLocal::event( QString syncProf, int id ) { @@ -241,3 +241,3 @@ Event *CalendarLocal::event( int id ) for ( todo = mEventList.first(); todo; todo = mEventList.next() ) { - if ( todo->zaurusId() == id ) return todo; + if ( todo->getID( syncProf ) == id ) return todo; } |