summaryrefslogtreecommitdiffabout
path: root/korganizer/koviewmanager.cpp
authorzautrix <zautrix>2005-01-31 12:09:55 (UTC)
committer zautrix <zautrix>2005-01-31 12:09:55 (UTC)
commit5d52c81be9b43887c13f8534a04164d3b44b821f (patch) (side-by-side diff)
tree79942122f3745a55fa08371970625f3e8733f5fa /korganizer/koviewmanager.cpp
parent0ee7cc932ca9c973b086f847a38d29531a815712 (diff)
downloadkdepimpi-5d52c81be9b43887c13f8534a04164d3b44b821f.zip
kdepimpi-5d52c81be9b43887c13f8534a04164d3b44b821f.tar.gz
kdepimpi-5d52c81be9b43887c13f8534a04164d3b44b821f.tar.bz2
fix
Diffstat (limited to 'korganizer/koviewmanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koviewmanager.cpp11
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
@@ -115,16 +115,17 @@ void KOViewManager::showDateView( int view, QDate date)
} else if (view == 4 ) {
mMainView->dateNavigator()->selectDates( date, 7 );
} else if (view == 5 ) {
mMainView->dateNavigator()->selectDates( date, 14);
} else if (view == 6 ) {
mMainView->dateNavigator()->blockSignals( true );
+ showMonthView();
+ qApp->processEvents();
mMainView->dateNavigator()->selectMonthByDate( date );
- mMainView->dateNavigator()->selectDate( date );
mMainView->dateNavigator()->blockSignals( false );
- showMonthView();
+ mMainView->dateNavigator()->selectDate( date );
} else if (view == 7 ) {
mMainView->dateNavigator()->selectDate( date );
showJournalView();
} else if (view == 8 ) {
globalFlagBlockAgenda = 1;
if ( mCurrentAgendaView != 3 )
@@ -147,13 +148,13 @@ void KOViewManager::showDateView( int view, QDate date)
}
void KOViewManager::writeSettings(KConfig *config)
{
- config->setGroup("General");
+ config->setGroup("General");
QString view;
if (mCurrentView == mWhatsNextView) view = "WhatsNext";
else if (mCurrentView == mMonthView) view = "Month";
else if (mCurrentView == mListView) view = "List";
else if (mCurrentView == mJournalView) view = "Journal";
@@ -520,17 +521,13 @@ void KOViewManager::showMonthView()
mMonthView->updateConfig();
}
globalFlagBlockAgenda = 1;
//mFlagShowNextxDays = false;
// if(mMonthView == mCurrentView) return;
- mMainView->dateNavigator()->blockSignals( true );
mMainView->dateNavigator()->selectMonth();
- mMainView->dateNavigator()->blockSignals( false);
- // DateList tmpList = mMainView->dateNavigator()->selectedDates( );
- //mMonthView->showDates(tmpList.first(), tmpList.last());
showView(mMonthView, true );
}
void KOViewManager::showTodoView()