X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2FBusinessLogic%2FUIManager.cpp;fp=src%2FBusinessLogic%2FUIManager.cpp;h=505597bbe7831e129a22b561bdd1dcfdfd0d981f;hb=8e4cea2a85073fb73a1dc58fb4adabb6269f4ac9;hp=0b94628ceaf76be646791241c2f95e8190e5cb22;hpb=33edea90bd097065e8c6b63cabc6b4b22c6a5d2c;p=qtmeetings diff --git a/src/BusinessLogic/UIManager.cpp b/src/BusinessLogic/UIManager.cpp index 0b94628..505597b 100644 --- a/src/BusinessLogic/UIManager.cpp +++ b/src/BusinessLogic/UIManager.cpp @@ -243,9 +243,8 @@ void UIManager::currentRoomChanged(Room *aRoom) qDebug() << "[UIManager::currentRoomChanged] "; if ( iWeeklyView != 0 ) { - QDateTime from = QDateTime( iWeeklyView->beginnigOfShownWeek() ); - QDateTime to = QDateTime( from.addDays( 8 ) ); - iEngine->fetchMeetings( from, to, aRoom ); + QDateTime shown = QDateTime( iWeeklyView->beginnigOfShownWeek() ); + iEngine->fetchMeetings( shown.date().weekNumber(), shown.date().year(), aRoom ); } }