mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-23 09:18:34 +02:00
Modified rdairplay(1) to always scroll log to the top when using
the hour selector.
This commit is contained in:
parent
d0c232eef1
commit
d7253e31c1
@ -19749,3 +19749,6 @@
|
|||||||
* Fixed a regression in rdairplay(1) that caused two events to be
|
* Fixed a regression in rdairplay(1) that caused two events to be
|
||||||
started by a single spacebar tap if a SoundPanel event had been
|
started by a single spacebar tap if a SoundPanel event had been
|
||||||
played previously.
|
played previously.
|
||||||
|
2020-04-01 Patrick Linstruth <patrick@deltecent.com>
|
||||||
|
* Modified rdairplay(1) to always scroll log to the top when using
|
||||||
|
the hour selector.
|
||||||
|
@ -586,6 +586,8 @@ void ListLog::selectHour(int hour)
|
|||||||
while(item!=NULL) {
|
while(item!=NULL) {
|
||||||
if(PredictedStartHour(item)==hour) {
|
if(PredictedStartHour(item)==hour) {
|
||||||
list_log_list->clearSelection();
|
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->ensureItemVisible(item);
|
||||||
list_log_list->setSelected(item,true);
|
list_log_list->setSelected(item,true);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user