summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-03-29 12:14:44 (UTC)
committer zautrix <zautrix>2005-03-29 12:14:44 (UTC)
commit894717798a8d129f4b991a2fe856d2f1e8e9624a (patch) (side-by-side diff)
treefd28b6e3855d0f684bc9f341e60a0c1d0d50cd56
parent4af444fb7071d37c966f002f4971d209971679c9 (diff)
downloadkdepimpi-894717798a8d129f4b991a2fe856d2f1e8e9624a.zip
kdepimpi-894717798a8d129f4b991a2fe856d2f1e8e9624a.tar.gz
kdepimpi-894717798a8d129f4b991a2fe856d2f1e8e9624a.tar.bz2
fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/datenavigatorcontainer.cpp2
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
@@ -117,25 +117,25 @@ 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();