diff --git a/ChangeLog b/ChangeLog index f94df90f..67ae05db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19749,3 +19749,6 @@ * Fixed a regression in rdairplay(1) that caused two events to be started by a single spacebar tap if a SoundPanel event had been played previously. +2020-04-01 Patrick Linstruth + * Modified rdairplay(1) to always scroll log to the top when using + the hour selector. diff --git a/rdairplay/list_log.cpp b/rdairplay/list_log.cpp index ec47c4ce..ab1005e5 100644 --- a/rdairplay/list_log.cpp +++ b/rdairplay/list_log.cpp @@ -586,6 +586,8 @@ void ListLog::selectHour(int hour) while(item!=NULL) { if(PredictedStartHour(item)==hour) { list_log_list->clearSelection(); + // Always start from the bottom so visible item is at the top + list_log_list->ensureItemVisible(list_log_list->lastItem()); list_log_list->ensureItemVisible(item); list_log_list->setSelected(item,true); return;