Skip to content

Commit

Permalink
Fix crash when right double clicking GLSL waveform
Browse files Browse the repository at this point in the history
  • Loading branch information
poelzi committed May 24, 2021
1 parent 9a105f2 commit 70e3147
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 70e3147

Please sign in to comment.