-rw-r--r-- | korganizer/kolistview.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index d4d9c0f..d0dbb47 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp | |||
@@ -357,5 +357,12 @@ void KOListView::setAlarm() | |||
357 | while ( qitem ) { | 357 | while ( qitem ) { |
358 | if ( qitem->isSelected() ) { | 358 | if ( qitem->isSelected() ) { |
359 | sel.append(((KOListViewItem *)qitem)); | 359 | Incidence* inc = ((KOListViewItem *) qitem)->data(); |
360 | if ( inc->type() != "Journal" ) { | ||
361 | if ( inc->type() == "Todo" ) { | ||
362 | if ( ((Todo*)inc)->hasDueDate() ) | ||
363 | sel.append(((KOListViewItem *)qitem)); | ||
364 | } else | ||
365 | sel.append(((KOListViewItem *)qitem)); | ||
366 | } | ||
360 | } | 367 | } |
361 | qitem = qitem->nextSibling(); | 368 | qitem = qitem->nextSibling(); |
@@ -367,5 +374,4 @@ void KOListView::setAlarm() | |||
367 | while ( item ) { | 374 | while ( item ) { |
368 | inc = item->data(); | 375 | inc = item->data(); |
369 | if ( inc->type() != "Journal" ) { | ||
370 | ++count; | 376 | ++count; |
371 | if (kap.mAlarmButton->isChecked()) { | 377 | if (kap.mAlarmButton->isChecked()) { |
@@ -401,5 +407,4 @@ void KOListView::setAlarm() | |||
401 | } | 407 | } |
402 | } | 408 | } |
403 | } | ||
404 | temp = item; | 409 | temp = item; |
405 | item = sel.next(); | 410 | item = sel.next(); |