-rw-r--r-- | korganizer/koviewmanager.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp index 2cd8792..c95917f 100644 --- a/korganizer/koviewmanager.cpp +++ b/korganizer/koviewmanager.cpp | |||
@@ -113,20 +113,21 @@ void KOViewManager::showDateView( int view, QDate date) | |||
113 | if ( view == 3 ) { | 113 | if ( view == 3 ) { |
114 | mMainView->showDay( date ); | 114 | mMainView->showDay( date ); |
115 | } else if (view == 4 ) { | 115 | } else if (view == 4 ) { |
116 | mMainView->dateNavigator()->selectDates( date, 7 ); | 116 | mMainView->dateNavigator()->selectDates( date, 7 ); |
117 | } else if (view == 5 ) { | 117 | } else if (view == 5 ) { |
118 | mMainView->dateNavigator()->selectDates( date, 14); | 118 | mMainView->dateNavigator()->selectDates( date, 14); |
119 | } else if (view == 6 ) { | 119 | } else if (view == 6 ) { |
120 | mMainView->dateNavigator()->blockSignals( true ); | 120 | mMainView->dateNavigator()->blockSignals( true ); |
121 | showMonthView(); | ||
122 | qApp->processEvents(); | ||
121 | mMainView->dateNavigator()->selectMonthByDate( date ); | 123 | mMainView->dateNavigator()->selectMonthByDate( date ); |
122 | mMainView->dateNavigator()->selectDate( date ); | ||
123 | mMainView->dateNavigator()->blockSignals( false ); | 124 | mMainView->dateNavigator()->blockSignals( false ); |
124 | showMonthView(); | 125 | mMainView->dateNavigator()->selectDate( date ); |
125 | } else if (view == 7 ) { | 126 | } else if (view == 7 ) { |
126 | mMainView->dateNavigator()->selectDate( date ); | 127 | mMainView->dateNavigator()->selectDate( date ); |
127 | showJournalView(); | 128 | showJournalView(); |
128 | } else if (view == 8 ) { | 129 | } else if (view == 8 ) { |
129 | globalFlagBlockAgenda = 1; | 130 | globalFlagBlockAgenda = 1; |
130 | if ( mCurrentAgendaView != 3 ) | 131 | if ( mCurrentAgendaView != 3 ) |
131 | mCurrentAgendaView = -1; | 132 | mCurrentAgendaView = -1; |
132 | showAgendaView(KOPrefs::instance()->mFullViewMonth); | 133 | showAgendaView(KOPrefs::instance()->mFullViewMonth); |
@@ -145,17 +146,17 @@ void KOViewManager::showDateView( int view, QDate date) | |||
145 | #endif | 146 | #endif |
146 | 147 | ||
147 | } | 148 | } |
148 | 149 | ||
149 | 150 | ||
150 | 151 | ||
151 | void KOViewManager::writeSettings(KConfig *config) | 152 | void KOViewManager::writeSettings(KConfig *config) |
152 | { | 153 | { |
153 | config->setGroup("General"); | 154 | config->setGroup("General"); |
154 | 155 | ||
155 | QString view; | 156 | QString view; |
156 | if (mCurrentView == mWhatsNextView) view = "WhatsNext"; | 157 | if (mCurrentView == mWhatsNextView) view = "WhatsNext"; |
157 | else if (mCurrentView == mMonthView) view = "Month"; | 158 | else if (mCurrentView == mMonthView) view = "Month"; |
158 | else if (mCurrentView == mListView) view = "List"; | 159 | else if (mCurrentView == mListView) view = "List"; |
159 | else if (mCurrentView == mJournalView) view = "Journal"; | 160 | else if (mCurrentView == mJournalView) view = "Journal"; |
160 | else if (mCurrentView == mTimeSpanView) view = "TimeSpan"; | 161 | else if (mCurrentView == mTimeSpanView) view = "TimeSpan"; |
161 | else if (mCurrentView == mTodoView) view = "Todo"; | 162 | else if (mCurrentView == mTodoView) view = "Todo"; |
@@ -518,21 +519,17 @@ void KOViewManager::showMonthView() | |||
518 | connect( mMonthView, SIGNAL(prevMonth() ), | 519 | connect( mMonthView, SIGNAL(prevMonth() ), |
519 | mMainView->navigatorBar(), SIGNAL(goPrevMonth() ) ); | 520 | mMainView->navigatorBar(), SIGNAL(goPrevMonth() ) ); |
520 | mMonthView->updateConfig(); | 521 | mMonthView->updateConfig(); |
521 | } | 522 | } |
522 | 523 | ||
523 | globalFlagBlockAgenda = 1; | 524 | globalFlagBlockAgenda = 1; |
524 | //mFlagShowNextxDays = false; | 525 | //mFlagShowNextxDays = false; |
525 | // if(mMonthView == mCurrentView) return; | 526 | // if(mMonthView == mCurrentView) return; |
526 | mMainView->dateNavigator()->blockSignals( true ); | ||
527 | mMainView->dateNavigator()->selectMonth(); | 527 | mMainView->dateNavigator()->selectMonth(); |
528 | mMainView->dateNavigator()->blockSignals( false); | ||
529 | // DateList tmpList = mMainView->dateNavigator()->selectedDates( ); | ||
530 | //mMonthView->showDates(tmpList.first(), tmpList.last()); | ||
531 | 528 | ||
532 | showView(mMonthView, true ); | 529 | showView(mMonthView, true ); |
533 | 530 | ||
534 | } | 531 | } |
535 | 532 | ||
536 | void KOViewManager::showTodoView() | 533 | void KOViewManager::showTodoView() |
537 | { | 534 | { |
538 | //mFlagShowNextxDays = false; | 535 | //mFlagShowNextxDays = false; |