-rw-r--r-- | korganizer/calendarview.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index d6918d3..6eaac1c 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -3610,13 +3610,17 @@ void CalendarView::updateFilter() { CalFilter *filter = mFilterView->selectedFilter(); if (filter) { + QString mess; if (mFilterView->filtersEnabled()) { - topLevelWidget()->setCaption( i18n("Filter selected: ")+filter->name() ); + mess = i18n("Filter selected: ")+filter->name(); filter->setEnabled(true); } else filter->setEnabled(false); mCalendar->setFilter(filter); updateView(); + if ( !mess.isEmpty() ) + topLevelWidget()->setCaption( mess ); + } } |