-rw-r--r-- | korganizer/kolistview.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index 517677c..e5e3704 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp | |||
@@ -418,49 +418,50 @@ void KOListView::setCalendar( int c ) | |||
418 | } | 418 | } |
419 | incidence = delSel.next(); | 419 | incidence = delSel.next(); |
420 | } | 420 | } |
421 | } | 421 | } |
422 | QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars; | 422 | QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars; |
423 | KopiCalendarFile * cal = calendars.first(); | 423 | KopiCalendarFile * cal = calendars.first(); |
424 | while ( cal ) { | 424 | while ( cal ) { |
425 | mCalendar->setCalendarEnabled( cal->mCalNumber,cal->isEnabled ); | 425 | mCalendar->setCalendarEnabled( cal->mCalNumber,cal->isEnabled ); |
426 | mCalendar->setAlarmEnabled( cal->mCalNumber, cal->isAlarmEnabled ); | 426 | mCalendar->setAlarmEnabled( cal->mCalNumber, cal->isAlarmEnabled ); |
427 | mCalendar->setReadOnly( cal->mCalNumber, cal->isReadOnly ); | 427 | mCalendar->setReadOnly( cal->mCalNumber, cal->isReadOnly ); |
428 | if ( cal->isStandard ) | 428 | if ( cal->isStandard ) |
429 | mCalendar->setDefaultCalendar( cal->mCalNumber ); | 429 | mCalendar->setDefaultCalendar( cal->mCalNumber ); |
430 | cal = calendars.next(); | 430 | cal = calendars.next(); |
431 | } | 431 | } |
432 | mCalendar->setSyncEventsReadOnly(); | 432 | mCalendar->setSyncEventsReadOnly(); |
433 | mCalendar->reInitAlarmSettings(); | 433 | mCalendar->reInitAlarmSettings(); |
434 | 434 | ||
435 | } | 435 | } |
436 | void KOListView::populateCalPopup() | 436 | void KOListView::populateCalPopup() |
437 | { | 437 | { |
438 | mCalPopup->clear(); | 438 | mCalPopup->clear(); |
439 | KopiCalendarFile * kkf = KOPrefs::instance()->mCalendars.first(); | 439 | KopiCalendarFile * kkf = KOPrefs::instance()->mCalendars.first(); |
440 | while ( kkf ) { | 440 | while ( kkf ) { |
441 | int index = mCalPopup->insertItem( kkf->mName, kkf->mCalNumber); | 441 | int index = mCalPopup->insertItem( kkf->mName, kkf->mCalNumber); |
442 | mCalPopup->setItemEnabled( index, !kkf->isReadOnly ); | 442 | if ( kkf->mErrorOnLoad || kkf->isReadOnly ) |
443 | mCalPopup->setItemEnabled( index, false ); | ||
443 | kkf = KOPrefs::instance()->mCalendars.next(); | 444 | kkf = KOPrefs::instance()->mCalendars.next(); |
444 | } | 445 | } |
445 | } | 446 | } |
446 | void KOListView::updateList() | 447 | void KOListView::updateList() |
447 | { | 448 | { |
448 | // qDebug(" KOListView::updateList() "); | 449 | // qDebug(" KOListView::updateList() "); |
449 | 450 | ||
450 | } | 451 | } |
451 | 452 | ||
452 | void KOListView::clearList() | 453 | void KOListView::clearList() |
453 | { | 454 | { |
454 | clear (); | 455 | clear (); |
455 | } | 456 | } |
456 | void KOListView::addCat( ) | 457 | void KOListView::addCat( ) |
457 | { | 458 | { |
458 | setCategories( false ); | 459 | setCategories( false ); |
459 | } | 460 | } |
460 | void KOListView::setCat() | 461 | void KOListView::setCat() |
461 | { | 462 | { |
462 | setCategories( true ); | 463 | setCategories( true ); |
463 | } | 464 | } |
464 | 465 | ||
465 | void KOListView::setAlarm() | 466 | void KOListView::setAlarm() |
466 | { | 467 | { |