From d7253e31c17eb6028949e742f381137f8a25430e Mon Sep 17 00:00:00 2001 From: Patrick Linstruth Date: Wed, 1 Apr 2020 08:44:41 -0700 Subject: [PATCH] Modified rdairplay(1) to always scroll log to the top when using the hour selector. --- ChangeLog | 3 +++ rdairplay/list_log.cpp | 2 ++ 2 files changed, 5 insertions(+) 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;