summaryrefslogtreecommitdiffstats
path: root/knotes/knotesalarm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knotes/knotesalarm.cpp')
-rw-r--r--knotes/knotesalarm.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/knotes/knotesalarm.cpp b/knotes/knotesalarm.cpp
index c653d80ca..616c83b7c 100644
--- a/knotes/knotesalarm.cpp
+++ b/knotes/knotesalarm.cpp
@@ -61,10 +61,11 @@ void KNotesAlarm::checkAlarms()
KNotesGlobalConfig::self()->setAlarmsLastChecked( TQDateTime::currentDateTime() );
TQValueList<KCal::Alarm *> alarms = m_manager->alarms( from, KNotesGlobalConfig::self()->alarmsLastChecked() );
-
+ if( alarms.isEmpty())
+ return;
TQStringList notes;
TQValueList<KCal::Alarm *>::ConstIterator it;
- for ( it = alarms.begin(); it != alarms.end(); ++it )
+ for ( it = alarms.constBegin(); it != alarms.constEnd(); ++it )
{
KCal::Incidence *incidence = (*it)->parent();
notes += incidence->summary();