summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-08-29 14:26:12 (UTC)
committer zautrix <zautrix>2004-08-29 14:26:12 (UTC)
commit78f44f13835e3fa501997f485b505b193bd474f5 (patch) (side-by-side diff)
tree749dbe90d67997e551568d19d3cd40a96fbe29af
parent3a5648d8378b44cbe12d66bafa3d557c065f0f6d (diff)
downloadkdepimpi-78f44f13835e3fa501997f485b505b193bd474f5.zip
kdepimpi-78f44f13835e3fa501997f485b505b193bd474f5.tar.gz
kdepimpi-78f44f13835e3fa501997f485b505b193bd474f5.tar.bz2
Bugfix for changed todo in WN view
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 7eca69d..7444bad 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -1849,48 +1849,56 @@ void CalendarView::updateConfig()
void CalendarView::eventChanged(Event *event)
{
changeEventDisplay(event,KOGlobals::EVENTEDITED);
//updateUnmanagedViews();
}
void CalendarView::eventAdded(Event *event)
{
changeEventDisplay(event,KOGlobals::EVENTADDED);
}
void CalendarView::eventToBeDeleted(Event *)
{
kdDebug() << "CalendarView::eventToBeDeleted(): to be implemented" << endl;
}
void CalendarView::eventDeleted()
{
changeEventDisplay(0,KOGlobals::EVENTDELETED);
}
void CalendarView::changeTodoDisplay(Todo *which, int action)
{
changeIncidenceDisplay((Incidence *)which, action);
+ mDateNavigator->updateView();
+ //mDialogManager->updateSearchDialog();
+
+ if (which) {
+ mViewManager->currentView()->updateView();
+ mTodoList->updateView();
+ }
+
}
void CalendarView::changeIncidenceDisplay(Incidence *which, int action)
{
updateUnmanagedViews();
//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);
mDateNavigator->updateView();
//mDialogManager->updateSearchDialog();