We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 04cf4f8 + 2c3b56f commit 0e685c1Copy full SHA for 0e685c1
src/waveform/waveformwidgetfactory.cpp
@@ -41,6 +41,12 @@ bool shouldRenderWaveform(WaveformWidgetAbstract* pWaveformWidget) {
41
}
42
43
auto glw = dynamic_cast<QGLWidget*>(pWaveformWidget->getWidget());
44
+ if (glw == nullptr) {
45
+ // Not a QGLWidget. We can simply use QWidget::isVisible.
46
+ auto qwidget = dynamic_cast<QWidget*>(pWaveformWidget->getWidget());
47
+ return qwidget != nullptr && qwidget->isVisible();
48
+ }
49
+
50
if (glw == nullptr || !glw->isValid() || !glw->isVisible()) {
51
return false;
52
0 commit comments