summaryrefslogtreecommitdiffabout
path: root/korganizer
Unidiff
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 558fc55..98e0ac1 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -2608,48 +2608,62 @@ void CalendarView::changeTodoDisplay(Todo *which, int action)
2608 //mTodoList->updateView(); 2608 //mTodoList->updateView();
2609 } 2609 }
2610 2610
2611} 2611}
2612 2612
2613void CalendarView::changeIncidenceDisplay(Incidence *which, int action) 2613void CalendarView::changeIncidenceDisplay(Incidence *which, int action)
2614{ 2614{
2615 updateUnmanagedViews(); 2615 updateUnmanagedViews();
2616 //qDebug(" CalendarView::changeIncidenceDisplay++++++++++++++++++++++++++ %d %d ",which, action ); 2616 //qDebug(" CalendarView::changeIncidenceDisplay++++++++++++++++++++++++++ %d %d ",which, action );
2617 if ( action == KOGlobals::EVENTDELETED ) { //delete 2617 if ( action == KOGlobals::EVENTDELETED ) { //delete
2618 mCalendar->checkAlarmForIncidence( 0, true ); 2618 mCalendar->checkAlarmForIncidence( 0, true );
2619 if ( mEventViewerDialog ) 2619 if ( mEventViewerDialog )
2620 mEventViewerDialog->hide(); 2620 mEventViewerDialog->hide();
2621 } 2621 }
2622 else 2622 else
2623 mCalendar->checkAlarmForIncidence( which , false ); 2623 mCalendar->checkAlarmForIncidence( which , false );
2624} 2624}
2625 2625
2626// most of the changeEventDisplays() right now just call the view's 2626// most of the changeEventDisplays() right now just call the view's
2627// total update mode, but they SHOULD be recoded to be more refresh-efficient. 2627// total update mode, but they SHOULD be recoded to be more refresh-efficient.
2628void CalendarView::changeEventDisplay(Event *which, int action) 2628void CalendarView::changeEventDisplay(Event *which, int action)
2629{ 2629{
2630 // kdDebug() << "CalendarView::changeEventDisplay" << endl; 2630 // kdDebug() << "CalendarView::changeEventDisplay" << endl;
2631 changeIncidenceDisplay((Incidence *)which, action); 2631 changeIncidenceDisplay((Incidence *)which, action);
2632
2633
2634 static bool clearallviews = false;
2635 if ( KOPrefs::instance()->mGlobalUpdateDisabled ) {
2636 if ( clearallviews ) {
2637 clearAllViews();
2638 clearallviews = false;
2639 }
2640 return;
2641 }
2642 clearallviews = true;
2643
2644
2645
2632 mDateNavigator->updateView(); 2646 mDateNavigator->updateView();
2633 //mDialogManager->updateSearchDialog(); 2647 //mDialogManager->updateSearchDialog();
2634 2648
2635 if (which) { 2649 if (which) {
2636 // If there is an event view visible update the display 2650 // If there is an event view visible update the display
2637 mViewManager->currentView()->changeEventDisplay(which,action); 2651 mViewManager->currentView()->changeEventDisplay(which,action);
2638 // TODO: check, if update needed 2652 // TODO: check, if update needed
2639 // if (which->getTodoStatus()) { 2653 // if (which->getTodoStatus()) {
2640 mTodoList->updateView(); 2654 mTodoList->updateView();
2641 // } 2655 // }
2642 } else { 2656 } else {
2643 mViewManager->currentView()->updateView(); 2657 mViewManager->currentView()->updateView();
2644 } 2658 }
2645} 2659}
2646 2660
2647 2661
2648void CalendarView::updateTodoViews() 2662void CalendarView::updateTodoViews()
2649{ 2663{
2650 mTodoList->updateView(); 2664 mTodoList->updateView();
2651 mViewManager->currentView()->updateView(); 2665 mViewManager->currentView()->updateView();
2652 2666
2653} 2667}
2654 2668
2655 2669