author | zautrix <zautrix> | 2005-07-07 22:42:31 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-07 22:42:31 (UTC) |
commit | 9635c9a7b8f5c19a1784079d4b67cb3ca600fc33 (patch) (unidiff) | |
tree | 55a23c20f4092409a1dd2c34cecf6bdb7341a04b | |
parent | 876816e6582299d527610e847d259d2be6de403c (diff) | |
download | kdepimpi-9635c9a7b8f5c19a1784079d4b67cb3ca600fc33.zip kdepimpi-9635c9a7b8f5c19a1784079d4b67cb3ca600fc33.tar.gz kdepimpi-9635c9a7b8f5c19a1784079d4b67cb3ca600fc33.tar.bz2 |
fixxx
-rw-r--r-- | korganizer/calendarview.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 2582931..68d1bc6 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -2742,17 +2742,17 @@ void CalendarView::changeEventDisplay(Event *which, int action) | |||
2742 | } | 2742 | } |
2743 | } | 2743 | } |
2744 | void CalendarView::checkConflictForEvent() | 2744 | void CalendarView::checkConflictForEvent() |
2745 | { | 2745 | { |
2746 | 2746 | ||
2747 | if (!KOPrefs::instance()->mConfirm) | 2747 | if (!KOPrefs::instance()->mConfirm) |
2748 | return; | 2748 | return; |
2749 | if ( ! mConflictingEvent ) return; | 2749 | if ( ! mConflictingEvent ) return; |
2750 | if ( mConflictingEvent->doesFloat() ) { | 2750 | if ( mConflictingEvent->isHoliday() || mConflictingEvent->isBirthday() || mConflictingEvent->isAnniversary() ) { |
2751 | mConflictingEvent = 0; | 2751 | mConflictingEvent = 0; |
2752 | return; | 2752 | return; |
2753 | } | 2753 | } |
2754 | QPtrList<Event> testlist = mCalendar->events(); | 2754 | QPtrList<Event> testlist = mCalendar->events(); |
2755 | Event * test = testlist.first(); | 2755 | Event * test = testlist.first(); |
2756 | QDateTime conflict; | 2756 | QDateTime conflict; |
2757 | QDateTime retVal; | 2757 | QDateTime retVal; |
2758 | bool found = false; | 2758 | bool found = false; |
@@ -2784,19 +2784,18 @@ void CalendarView::checkConflictForEvent() | |||
2784 | return; | 2784 | return; |
2785 | 2785 | ||
2786 | if ( mViewManager->currentView() != mViewManager->agendaView() || mNavigator->selectedDates().count() > 1 ) | 2786 | if ( mViewManager->currentView() != mViewManager->agendaView() || mNavigator->selectedDates().count() > 1 ) |
2787 | mViewManager->showDayView(); | 2787 | mViewManager->showDayView(); |
2788 | mNavigator->slotDaySelect( conflict.date() ); | 2788 | mNavigator->slotDaySelect( conflict.date() ); |
2789 | int hour = conflict.time().hour(); | 2789 | int hour = conflict.time().hour(); |
2790 | mViewManager->agendaView()->setStartHour( hour ); | 2790 | mViewManager->agendaView()->setStartHour( hour ); |
2791 | topLevelWidget()->setCaption( i18n("Conflict %1 <-> %2"). arg( mConflictingEvent->summary().left( 20 ) ).arg( cE->summary().left( 20 ) ) ); | 2791 | topLevelWidget()->setCaption( i18n("Conflict %1 <-> %2"). arg( mConflictingEvent->summary().left( 20 ) ).arg( cE->summary().left( 20 ) ) ); |
2792 | return; | ||
2793 | } | 2792 | } |
2794 | 2793 | mConflictingEvent = 0; | |
2795 | return; | 2794 | return; |
2796 | 2795 | ||
2797 | } | 2796 | } |
2798 | 2797 | ||
2799 | void CalendarView::updateTodoViews() | 2798 | void CalendarView::updateTodoViews() |
2800 | { | 2799 | { |
2801 | mTodoList->updateView(); | 2800 | mTodoList->updateView(); |
2802 | mViewManager->currentView()->updateView(); | 2801 | mViewManager->currentView()->updateView(); |