summaryrefslogtreecommitdiffabout
path: root/korganizer/calendarview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/calendarview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 9c10ba6..12af655 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -341,3 +341,4 @@ void CalendarView::init()
}
-
+ if ( !KOPrefs::instance()->mShowDateNavigator)
+ mDateNavigator->hide();
//qDebug("Calendarview Size %d %d ", width(), height());
@@ -2170,6 +2171,6 @@ void CalendarView::updateView()
- // We assume that the navigator only selects consecutive days.
- updateView( tmpList.first(), tmpList.last() );
if ( KOPrefs::instance()->mHideNonStartedTodos )
mTodoList->updateView();
+ // We assume that the navigator only selects consecutive days.
+ updateView( tmpList.first(), tmpList.last() );
}
@@ -3611,3 +3612,4 @@ void CalendarView::toggleDateNavigatorWidget()
{
- if (mDateNavigator->isVisible())
+ KOPrefs::instance()->mShowDateNavigator = !KOPrefs::instance()->mShowDateNavigator ;
+ if (!KOPrefs::instance()->mShowDateNavigator )
mDateNavigator->hide();