-rw-r--r-- | libkcal/event.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libkcal/event.cpp b/libkcal/event.cpp index 9b99855..7cd81fa 100644 --- a/libkcal/event.cpp +++ b/libkcal/event.cpp @@ -175,3 +175,5 @@ QDateTime Event::getNextAlarmDateTime( bool * ok, int * offset, QDateTime start_ { - + *ok = false; + if ( !alarmEnabled() ) + return QDateTime (); bool yes; |