summaryrefslogtreecommitdiffabout
path: root/korganizer/kolistview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/kolistview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kolistview.cpp11
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()
while ( qitem ) {
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));
+ }
}
qitem = qitem->nextSibling();
@@ -367,5 +374,4 @@ void KOListView::setAlarm()
while ( item ) {
inc = item->data();
- if ( inc->type() != "Journal" ) {
++count;
if (kap.mAlarmButton->isChecked()) {
@@ -401,5 +407,4 @@ void KOListView::setAlarm()
}
}
- }
temp = item;
item = sel.next();