Skip to content

Commit

Permalink
Merge pull request #3904 from poelzi/fix-doubleclick
Browse files Browse the repository at this point in the history
Fix crash when right double clicking GLSL waveform
  • Loading branch information
uklotzde authored May 24, 2021
2 parents 3fd7adc + 70e3147 commit 99f0a7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/waveform/widgets/glslwaveformwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ void GLSLWaveformWidget::mouseDoubleClickEvent(QMouseEvent *event) {
if (event->button() == Qt::RightButton) {
makeCurrent();
#if !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_2)
m_signalRenderer->debugClick();
if (m_signalRenderer) {
m_signalRenderer->debugClick();
}
#endif // !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_2)
}
}

0 comments on commit 99f0a7e

Please sign in to comment.