-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 | |||
@@ -2744,13 +2744,13 @@ void CalendarView::changeEventDisplay(Event *which, int action) | |||
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; |
@@ -2786,15 +2786,14 @@ void CalendarView::checkConflictForEvent() | |||
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 | { |