From 53099ae3a9ef02549536dab3dd6870b7a2874284 Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 04 Feb 2005 22:55:48 +0000 Subject: fixxx --- diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 5a5b73e..8f63d1c 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt @@ -1208,7 +1208,6 @@ { "Select week %1-%2","Selektiere Woche %1-%2" }, { "Select Week","Selektiere Woche" }, { "Set alarm for selected...","Setze Alarm für Selekt..." }, -{ "Set reminder offset to:","Setze Alarm Offset auf:" }, { "Set Alarm!","Setze Alarm!" }, { "Canged alarm for %1 items","Alarm für %1 Items geändert" }, { " and "," und " }, @@ -1216,7 +1215,7 @@ { "Mail to selected","Mail an Ausgewählte" }, { "Mail to all","Mail an Alle" }, { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, -{ "","" }, +{ "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, { "","" }, { "","" }, { "","" }, diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index d4d9c0f..d0dbb47 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp @@ -356,7 +356,14 @@ void KOListView::setAlarm() QListViewItem *qitem = mListView->firstChild (); 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(); } @@ -366,7 +373,6 @@ void KOListView::setAlarm() Incidence* inc; while ( item ) { inc = item->data(); - if ( inc->type() != "Journal" ) { ++count; if (kap.mAlarmButton->isChecked()) { if (inc->alarms().count() == 0) @@ -400,7 +406,6 @@ void KOListView::setAlarm() alarm->setType(Alarm::Invalid); } } - } temp = item; item = sel.next(); mUidDict.remove( inc->uid() ); diff --git a/korganizer/kolistview.h b/korganizer/kolistview.h index 78004fe..bd5bd12 100644 --- a/korganizer/kolistview.h +++ b/korganizer/kolistview.h @@ -68,7 +68,7 @@ class KOAlarmPrefs : public QDialog alarmLayout->setSpacing( 3 ); alarmLayout->setMargin( 3 ); QWidget *parent = this; - mAlarmButton = new QCheckBox(i18n("Set reminder offset to:"),parent); + mAlarmButton = new QCheckBox(i18n("Set reminder ON with offset to:"),parent); alarmLayout->addWidget(mAlarmButton); mAlarmTimeEdit = new QSpinBox ( 0, 9999, 1, parent, "mAlarmTimeEdit " ) ; mAlarmTimeEdit->setValue( 15 ); -- cgit v0.9.0.2