summaryrefslogtreecommitdiffabout
path: root/korganizer/kolistview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/kolistview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/kolistview.cpp9
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()
while ( qitem ) {
if ( qitem->isSelected() ) {
+ 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();