-rw-r--r-- | korganizer/kolistview.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index d4d9c0f..d0dbb47 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp | |||
@@ -357,6 +357,13 @@ void KOListView::setAlarm() | |||
357 | while ( qitem ) { | 357 | while ( qitem ) { |
358 | if ( qitem->isSelected() ) { | 358 | if ( qitem->isSelected() ) { |
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 | ||
359 | sel.append(((KOListViewItem *)qitem)); | 365 | sel.append(((KOListViewItem *)qitem)); |
360 | } | 366 | } |
367 | } | ||
361 | qitem = qitem->nextSibling(); | 368 | qitem = qitem->nextSibling(); |
362 | } | 369 | } |
@@ -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(); |