author | zautrix <zautrix> | 2005-07-07 12:30:17 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-07 12:30:17 (UTC) |
commit | 766b53919de14b8faec22db32b6a750acde0b760 (patch) (unidiff) | |
tree | bb07c0af89b0dddf4257a61e9f5b1cf23c4a282a /korganizer/kolistview.cpp | |
parent | b4d85da57e2d558ec088af6f3b2a34b1854462c0 (diff) | |
download | kdepimpi-766b53919de14b8faec22db32b6a750acde0b760.zip kdepimpi-766b53919de14b8faec22db32b6a750acde0b760.tar.gz kdepimpi-766b53919de14b8faec22db32b6a750acde0b760.tar.bz2 |
fixesss
-rw-r--r-- | korganizer/kolistview.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index 7783dd4..d25f671 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp | |||
@@ -517,9 +517,7 @@ void KOListView::setAlarm() | |||
517 | if (kap.mAlarmButton->isChecked()) { | 517 | if (kap.mAlarmButton->isChecked()) { |
518 | if (inc->alarms().count() == 0) | 518 | if (inc->alarms().count() == 0) |
519 | inc->newAlarm(); | 519 | inc->newAlarm(); |
520 | QPtrList<Alarm> alarms = inc->alarms(); | 520 | Alarm *alarm = inc->alarms().first(); |
521 | Alarm *alarm; | ||
522 | for (alarm = alarms.first(); alarm; alarm = alarms.next() ) { | ||
523 | alarm->setEnabled(true); | 521 | alarm->setEnabled(true); |
524 | int j = kap.mAlarmTimeEdit->value()* -60; | 522 | int j = kap.mAlarmTimeEdit->value()* -60; |
525 | if (kap.mAlarmIncrCombo->currentItem() == 1) | 523 | if (kap.mAlarmIncrCombo->currentItem() == 1) |
@@ -535,13 +533,10 @@ void KOListView::setAlarm() | |||
535 | alarm->setAudioAlarm(kap.mAlarmSound); | 533 | alarm->setAudioAlarm(kap.mAlarmSound); |
536 | else | 534 | else |
537 | alarm->setType(Alarm::Invalid); | 535 | alarm->setType(Alarm::Invalid); |
538 | //alarm->setAudioAlarm("default"); | ||
539 | // TODO: Deal with multiple alarms | ||
540 | break; // For now, stop after the first alarm | ||
541 | } | ||
542 | } else { | 536 | } else { |
543 | Alarm* alarm = inc->alarms().first(); | 537 | QPtrList<Alarm> alarms = inc->alarms(); |
544 | if ( alarm ) { | 538 | Alarm *alarm; |
539 | for (alarm = alarms.first(); alarm; alarm = alarms.next() ) { | ||
545 | alarm->setEnabled(false); | 540 | alarm->setEnabled(false); |
546 | alarm->setType(Alarm::Invalid); | 541 | alarm->setType(Alarm::Invalid); |
547 | } | 542 | } |