Skip to content

Commit

Permalink
logic analyzer: fixed crash when moving ch handles in oscilloscope mi…
Browse files Browse the repository at this point in the history
…xed signal view

Signed-off-by: Andrei Popa <[email protected]>
  • Loading branch information
andrei47w authored and adisuciu committed Mar 18, 2024
1 parent aa0c73d commit eeace79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logicanalyzer/logic_analyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ std::vector<QWidget *> LogicAnalyzer::enableMixedSignalView(CapturePlot *osc, in

m_oscChannelSelectedConnection = connect(m_oscPlot, &CapturePlot::channelSelected, [=](int chIdx, bool selected){
chIdx -= m_oscAnalogChannels;
if (m_oscChannelSelected != chIdx && selected) {
if (chIdx >= m_oscAnalogChannels && selected) {
m_oscChannelSelected = chIdx;
nameLineEdit->setEnabled(true);
nameLineEdit->setText(m_oscPlotCurves[chIdx]->getName());
Expand Down

0 comments on commit eeace79

Please sign in to comment.