Skip to content

Commit

Permalink
HistoryDialog: when deleting a waveform from context menu, packets an…
Browse files Browse the repository at this point in the history
…d markers are correctly removed as well
  • Loading branch information
azonenberg committed Aug 11, 2023
1 parent c0d539e commit 37aa92b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib
3 changes: 3 additions & 0 deletions src/ngscopeclient/HistoryDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ bool HistoryDialog::DoRender()
deletedSelection = true;

//Delete the selected row
//(manual delete applies even if we have markers or a pin)
m_session.RemoveMarkers((*itDelete)->m_time);
m_session.RemovePackets((*itDelete)->m_time);
m_mgr.m_history.erase(itDelete);

if(deletedSelection)
Expand Down

0 comments on commit 37aa92b

Please sign in to comment.