-rw-r--r-- | korganizer/koagendaview.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index 0d36946..13d8398 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -1533,6 +1533,16 @@ void KOAgendaView::setStartHour( int h ) mAgenda->setStartHour( h ); } +void KOAgendaView::setInitStartHour() +{ + + if ( KOPrefs::instance()->mCenterOnCurrentTime ) + setStartHour( QTime::currentTime ().hour() ); + else + setStartHour( KOPrefs::instance()->mDayBegins ); + +} + void KOAgendaView::updateTodo( Todo * t, int ) { |