Skip to content

Commit

Permalink
[skip ci] issue #4164, issue #4237: macOS crash when opening project …
Browse files Browse the repository at this point in the history
…from 'Recent files'
  • Loading branch information
wwmayer committed Jan 3, 2020
1 parent 4df6373 commit 3c3e946
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Gui/Quarter/QuarterWidget.cpp
Expand Up @@ -886,7 +886,11 @@ void QuarterWidget::paintEvent(QPaintEvent* event)
glMatrixMode(GL_PROJECTION);

QtGLWidget* w = static_cast<QtGLWidget*>(this->viewport());
assert(w->isValid() && "No valid GL context found!");
if (!w->isValid()) {
qWarning() << "No valid GL context found!";
return;
}
//assert(w->isValid() && "No valid GL context found!");
// We might have to process the delay queue here since we don't know
// if paintGL() is called from Qt, and we might have some sensors
// waiting to trigger (the redraw sensor has a lower priority than a
Expand Down

0 comments on commit 3c3e946

Please sign in to comment.