From 8d5e2ccb0c2d0b24d74b465df16846b429124b35 Mon Sep 17 00:00:00 2001 From: Pandagrapher Date: Sun, 17 Mar 2019 18:58:39 +0100 Subject: [PATCH] Create seperate history rows for spot creation, deletion or duplication --- rtgui/history.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtgui/history.cc b/rtgui/history.cc index dd1ede2f3..b116b0cdc 100644 --- a/rtgui/history.cc +++ b/rtgui/history.cc @@ -265,7 +265,8 @@ void History::procParamsChanged( } // if there is no last item or its chev!=ev, create a new one - if (size == 0 || !row || row[historyColumns.chev] != ev || ev == EvProfileChanged) { + if (size == 0 || !row || row[historyColumns.chev] != ev || ev == EvProfileChanged + || ev == EvLocallabSpotCreated || ev == EvLocallabSpotDeleted) { // Special cases: If Locallab spot is created , deleted or duplicated several times in a row, a new history row is used // Gtk::TreeModel::Row newrow = * (historyModel->append()); // newrow[historyColumns.realText] = eventDescrArray[ev]; Gtk::TreeModel::Row newrow = * (historyModel->append());