summaryrefslogtreecommitdiffabout
path: root/korganizer/komonthview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/komonthview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/komonthview.cpp8
1 files changed, 5 insertions, 3 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();
- emit selectWeekNum ( n );
+ switchView();
+ if ( !KOPrefs::instance()->mMonthViewWeek )
+ emit selectMonth ();
+ else
+ emit selectWeekNum ( n );
}
@@ -962,5 +965,4 @@ int KOMonthView::currentWeek()
void KOMonthView::switchView()
{
-
if ( selectedCell( ) )
selectedCell()->deselect();