From 83efb5e0966c5406b0b883e9485139678cb6be0c Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Fri, 1 Dec 2023 11:36:42 -0500 Subject: [PATCH] 2023-12-01 Fred Gleason * Fixed a regression in rdairplay(1) when using the 'Append Log' ['AL'] RML caused the Full Log widget to only display the first event of the appended log. Signed-off-by: Fred Gleason --- ChangeLog | 4 ++++ lib/rdlogmodel.cpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6be393f3..07f26622 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24498,3 +24498,7 @@ 2023-11-27 Fred Gleason * Fixed a bug in ripcd(8) that could cause a segfault when processing a null password in the 'Login' ['LO'] RML. +2023-12-01 Fred Gleason + * Fixed a regression in rdairplay(1) when using the 'Append Log' + ['AL'] RML caused the Full Log widget to only display the first + event of the appended log. diff --git a/lib/rdlogmodel.cpp b/lib/rdlogmodel.cpp index 509892c4..00791050 100644 --- a/lib/rdlogmodel.cpp +++ b/lib/rdlogmodel.cpp @@ -1162,6 +1162,7 @@ int RDLogModel::LoadLines(const QString &logname,int id_offset,bool track_ptrs) delete q; return 0; } + beginInsertRows(QModelIndex(),lineCount(),q->size()+lineCount()-1); for(int i=0;isize();i++) { lines++; line.clear(); @@ -1355,6 +1356,7 @@ int RDLogModel::LoadLines(const QString &logname,int id_offset,bool track_ptrs) line.clearModified(); d_log_lines.push_back(new RDLogLine(line)); } + endInsertRows(); delete q; if(track_ptrs) {