author | zautrix <zautrix> | 2005-03-29 12:14:44 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-29 12:14:44 (UTC) |
commit | 894717798a8d129f4b991a2fe856d2f1e8e9624a (patch) (side-by-side diff) | |
tree | fd28b6e3855d0f684bc9f341e60a0c1d0d50cd56 | |
parent | 4af444fb7071d37c966f002f4971d209971679c9 (diff) | |
download | kdepimpi-894717798a8d129f4b991a2fe856d2f1e8e9624a.zip kdepimpi-894717798a8d129f4b991a2fe856d2f1e8e9624a.tar.gz kdepimpi-894717798a8d129f4b991a2fe856d2f1e8e9624a.tar.bz2 |
fix
-rw-r--r-- | korganizer/datenavigatorcontainer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/datenavigatorcontainer.cpp b/korganizer/datenavigatorcontainer.cpp index edeebdf..27ba9e0 100644 --- a/korganizer/datenavigatorcontainer.cpp +++ b/korganizer/datenavigatorcontainer.cpp @@ -105,49 +105,49 @@ void DateNavigatorContainer::slotgoPrevMonth() void DateNavigatorContainer::slotgoNextMonth() { jumpMonth( 1 ); emit goNextMonth(); } void DateNavigatorContainer::jumpMonth( int month ) { QDate baseDate = mNavigatorView->baseDate(); computeMonthSelected( baseDate.month() + month, false ); } void DateNavigatorContainer::slotMonthSelected( int month ) { computeMonthSelected( month, true ); } void DateNavigatorContainer::computeMonthSelected( int month , bool forceEmit ) { //qDebug("slotMonthSelected %d ", month); QDate baseDate = mNavigatorView->baseDate(); if ( baseDate.month() == month ) return; //qDebug("month %d %d ",baseDate.month(),month); QDate date = QDate ( baseDate.year(), baseDate.month() , 15 ); date = date.addDays( -(baseDate.month()-month ) *30 ); - QDate newBase = QDate ( date.year(), date.month() , baseDate.day() ); + QDate newBase = QDate ( date.year(), date.month() ,1 ); //qDebug("NEW BASE %s", newBase.toString().latin1()); mNavigatorView->setBaseDate( newBase ); QDate last = lastAvailableDate(); QDate first = firstAvailableDate(); QDate selFirst = mFirstSelectedDate; QDate selLast = selFirst.addDays( mSelectedDateCount-1 ); if ( selFirst >= first && selLast <= last ) { setBaseDates(); if ( forceEmit ) updateDayMatrixDates(); } else { setBaseDates(); if ( forceEmit ) updateDayMatrixDates(); if ( forceEmit ) emit monthSelected( month ); } } void DateNavigatorContainer::setCalendar( Calendar *cal ) { mCalendar = cal; |