summaryrefslogtreecommitdiffabout
path: root/korganizer/komonthview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/komonthview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/komonthview.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp
index d0380e3..f9bc1ca 100644
--- a/korganizer/komonthview.cpp
+++ b/korganizer/komonthview.cpp
@@ -950,6 +950,9 @@ KOMonthView::~KOMonthView()
void KOMonthView::selectInternalWeekNum ( int n )
{
switchView();
+ if ( !KOPrefs::instance()->mMonthViewWeek )
+ emit selectMonth ();
+ else
emit selectWeekNum ( n );
}
@@ -961,7 +964,6 @@ int KOMonthView::currentWeek()
}
void KOMonthView::switchView()
{
-
if ( selectedCell( ) )
selectedCell()->deselect();
mShowWeekView = !mShowWeekView;