-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 @@ -358,3 +358,10 @@ void KOListView::setAlarm() if ( qitem->isSelected() ) { - sel.append(((KOListViewItem *)qitem)); + Incidence* inc = ((KOListViewItem *) qitem)->data(); + if ( inc->type() != "Journal" ) { + if ( inc->type() == "Todo" ) { + if ( ((Todo*)inc)->hasDueDate() ) + sel.append(((KOListViewItem *)qitem)); + } else + sel.append(((KOListViewItem *)qitem)); + } } @@ -368,3 +375,2 @@ void KOListView::setAlarm() inc = item->data(); - if ( inc->type() != "Journal" ) { ++count; @@ -402,3 +408,2 @@ void KOListView::setAlarm() } - } temp = item; |