From a2e963324e6db541f322002c307b40f24747e036 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 18 Jun 2005 20:16:48 +0000 Subject: filter change update fix --- diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 322c0e6..0ebd853 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt @@ -4,8 +4,9 @@ Info about the changes in new versions of KDE-Pim/Pi ********** VERSION 2.1.8 ************ KO/Pi: -Added info about the completion sate of a todo in the ListView/Searchdialog. +Added info about the completion state of a todo in the ListView/Searchdialog. If in TodoView is selected "do not show compledted todos" then completed todos are not shown in the ListView as well. +Fixed some updating problems when changing the filter. KA/Pi: In the addressee selection dialog now the formatted name is shown, if not empty. @@ -23,7 +24,7 @@ Added more options to the search dialog. Fixed a problem in the Month view. Added more options to the dialog when setting a todo to stopped. -Fixed two small problems in KO/PiAlarm applet. +Fixed two small problems in KO/Pi Alarm applet. ********** VERSION 2.1.6 ************ diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index d25f632..08909ed 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -4017,7 +4017,6 @@ void CalendarView::editFilters() CalFilter *filter = mFilters.first(); while(filter) { - kdDebug() << " Filter: " << filter->name() << endl; filter = mFilters.next(); } @@ -4040,6 +4039,7 @@ KOFilterView *CalendarView::filterView() void CalendarView::selectFilter( int fil ) { mFilterView->setSelectedFilter( fil ); + updateUnmanagedViews(); } void CalendarView::showFilter(bool visible) { @@ -4080,6 +4080,7 @@ void CalendarView::toggleFilerEnabled( ) mFilterView->setFiltersEnabled ( !mFilterView->filtersEnabled() ); if ( !mFilterView->filtersEnabled() ) topLevelWidget()->setCaption( i18n("Filter disabled ") ); + updateUnmanagedViews(); } void CalendarView::updateFilter() diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 0367bea..48320a5 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -2085,7 +2085,7 @@ void MainWindow::keyPressEvent ( QKeyEvent * e ) e->ignore(); } if ( pro > 0 ) { - mView->selectFilter( pro-1 ); + selectFilter( pro+1 ); } if ( showSelectedDates ) { ;// setCaptionToDates(); -- cgit v0.9.0.2