-rw-r--r-- | korganizer/komonthview.cpp | 8 |
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() | |||
950 | void KOMonthView::selectInternalWeekNum ( int n ) | 950 | void KOMonthView::selectInternalWeekNum ( int n ) |
951 | { | 951 | { |
952 | switchView(); | 952 | switchView(); |
953 | emit selectWeekNum ( n ); | 953 | if ( !KOPrefs::instance()->mMonthViewWeek ) |
954 | emit selectMonth (); | ||
955 | else | ||
956 | emit selectWeekNum ( n ); | ||
954 | } | 957 | } |
955 | 958 | ||
@@ -962,5 +965,4 @@ int KOMonthView::currentWeek() | |||
962 | void KOMonthView::switchView() | 965 | void KOMonthView::switchView() |
963 | { | 966 | { |
964 | |||
965 | if ( selectedCell( ) ) | 967 | if ( selectedCell( ) ) |
966 | selectedCell()->deselect(); | 968 | selectedCell()->deselect(); |