X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2FBusinessLogic%2FUIManager.cpp;h=eb806163e817bf189aed5751d7db75aeca4d25cc;hb=35a7d057e9343d0a940200074bef13991954bd2d;hp=59db6d76e0d1822474c3965f2a1227d1cec27522;hpb=637d9074f90e9741781ff41175260605cec7ad0e;p=qtmeetings diff --git a/src/BusinessLogic/UIManager.cpp b/src/BusinessLogic/UIManager.cpp index 59db6d7..eb80616 100644 --- a/src/BusinessLogic/UIManager.cpp +++ b/src/BusinessLogic/UIManager.cpp @@ -244,9 +244,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 ); } }