From b4eab1e4ca37c2aa2f6d18da6ef8d371eb968e1f Mon Sep 17 00:00:00 2001 From: Alban Peignier Date: Tue, 23 Sep 2014 21:23:00 +0200 Subject: [PATCH 1/2] Insert Cart at the end of the log when no entry is selected --- rdlogedit/edit_log.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/rdlogedit/edit_log.cpp b/rdlogedit/edit_log.cpp index efed57cf..882f3fcb 100644 --- a/rdlogedit/edit_log.cpp +++ b/rdlogedit/edit_log.cpp @@ -686,13 +686,12 @@ void EditLog::insertCartButtonData() int id; QListViewItem *item=SingleSelection(); - if(item==NULL) { - return; + if(item==NULL || (line=item->text(13).toInt())<0) { + line=edit_log_event->size(); + id=END_MARKER_ID; + } else { + id=item->text(12).toInt(); } - if((line=item->text(13).toInt())<0) { - line=0; - } - id=item->text(12).toInt(); edit_log_event->insert(line,1); edit_log_event->logLine(line)->setTransType(edit_default_trans); edit_log_event->logLine(line)->setFadeupGain(-3000); From 83892c1996e1f5e2d3deb96af8ba66f8ee8f68e2 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Wed, 24 Sep 2014 14:33:46 -0400 Subject: [PATCH 2/2] 2014-09-24 Fred Gleason * Applied a patch from albanpeignier for RDLogEdit that appends a new cart to a log if 'Add' is touch with no long line highlighted [GitHub pull request #000031. --- ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index 630207f6..fcec6487 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14502,3 +14502,7 @@ * Applied a patch from albanpeignier that adds a 'Clone' button to the 'Edit Clock' dialog in 'rdlogmanager/edit_clock.cpp' and 'rdlogmanager/edit_clock.h' [GitHub pull request #000030]. +2014-09-24 Fred Gleason + * Applied a patch from albanpeignier for RDLogEdit that appends + a new cart to a log if 'Add' is touch with no long line highlighted + [GitHub pull request #000031.