-rw-r--r-- | libkcal/alarm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libkcal/alarm.cpp b/libkcal/alarm.cpp index 6de1566..0afa0a7 100644 --- a/libkcal/alarm.cpp +++ b/libkcal/alarm.cpp @@ -339,5 +339,5 @@ int Alarm::offset() { if ( hasTime() ) { - if (mParent->type()=="Todo") { + if (mParent->typeID() == todoID ) { Todo *t = static_cast<Todo*>(mParent); return t->dtDue().secsTo( mAlarmTime ) ; @@ -382,5 +382,5 @@ QDateTime Alarm::time() const else { - if (mParent->type()=="Todo") { + if (mParent->typeID() == todoID ) { Todo *t = static_cast<Todo*>(mParent); return mOffset.end( t->dtDue() ); |