author | zautrix <zautrix> | 2005-07-06 14:53:38 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-06 14:53:38 (UTC) |
commit | 2038f7363c31e1a0ab139a1184cbed10086e1862 (patch) (side-by-side diff) | |
tree | 532bc409b7046938614417a8043455de0e86c8fe /korganizer | |
parent | 2e8199c8aa82c018d24d67c299a09b2aa6a786f1 (diff) | |
download | kdepimpi-2038f7363c31e1a0ab139a1184cbed10086e1862.zip kdepimpi-2038f7363c31e1a0ab139a1184cbed10086e1862.tar.gz kdepimpi-2038f7363c31e1a0ab139a1184cbed10086e1862.tar.bz2 |
huhu
-rw-r--r-- | korganizer/calendarview.cpp | 14 |
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 @@ -2616,32 +2616,46 @@ void CalendarView::changeIncidenceDisplay(Incidence *which, int action) //qDebug(" CalendarView::changeIncidenceDisplay++++++++++++++++++++++++++ %d %d ",which, action ); if ( action == KOGlobals::EVENTDELETED ) { //delete mCalendar->checkAlarmForIncidence( 0, true ); if ( mEventViewerDialog ) mEventViewerDialog->hide(); } else mCalendar->checkAlarmForIncidence( which , false ); } // most of the changeEventDisplays() right now just call the view's // total update mode, but they SHOULD be recoded to be more refresh-efficient. void CalendarView::changeEventDisplay(Event *which, int action) { // kdDebug() << "CalendarView::changeEventDisplay" << endl; changeIncidenceDisplay((Incidence *)which, action); + + + static bool clearallviews = false; + if ( KOPrefs::instance()->mGlobalUpdateDisabled ) { + if ( clearallviews ) { + clearAllViews(); + clearallviews = false; + } + return; + } + clearallviews = true; + + + mDateNavigator->updateView(); //mDialogManager->updateSearchDialog(); if (which) { // If there is an event view visible update the display mViewManager->currentView()->changeEventDisplay(which,action); // TODO: check, if update needed // if (which->getTodoStatus()) { mTodoList->updateView(); // } } else { mViewManager->currentView()->updateView(); } } |