From 3f114d3c86338352f88c3d2f568a1618baeaf994 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Sat, 11 Sep 2021 11:25:01 -0400 Subject: [PATCH] 2021-09-11 Fred Gleason * Fixed a bug in rdlogmanager(1) that could cause segfaults when changing the contents of the 'PRE-IMPORT CARTS' or 'POST-IMPORT CARTS' lists in the 'Editing Event' dialog in rdlogmanager(1). Signed-off-by: Fred Gleason --- ChangeLog | 4 ++++ rdlogmanager/importcartsmodel.cpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index bece32e5..06060f70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22393,3 +22393,7 @@ 'pypad_nautel.py'. 2021-09-10 Fred Gleason * Fixed a 'no such signal' error in 'rdcatchd/rdcatchd.cpp'. +2021-09-11 Fred Gleason + * Fixed a bug in rdlogmanager(1) that could cause segfaults when + changing the contents of the 'PRE-IMPORT CARTS' or 'POST-IMPORT CARTS' + lists in the 'Editing Event' dialog in rdlogmanager(1). diff --git a/rdlogmanager/importcartsmodel.cpp b/rdlogmanager/importcartsmodel.cpp index 7947d0ef..03772efa 100644 --- a/rdlogmanager/importcartsmodel.cpp +++ b/rdlogmanager/importcartsmodel.cpp @@ -401,6 +401,7 @@ QModelIndex ImportCartsModel::processCartDrop(int line,RDLogLine *ll) d_trans_types.removeAt(line); d_lengths.removeAt(line); d_icons.removeAt(line); + d_marker_comments.removeAt(line); endRemoveRows(); } else { // Add line @@ -419,6 +420,7 @@ QModelIndex ImportCartsModel::processCartDrop(int line,RDLogLine *ll) d_trans_types.insert(line,ll->transType()); d_lengths.insert(line,ll->forcedLength()); d_icons.insert(line,rda->iconEngine()->typeIcon(ll->type())); + d_marker_comments.insert(line,ll->markerComment()); endInsertRows(); }