From 42a4fe421ced51603d013235edace3c4c543a33e Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Thu, 28 Apr 2011 11:20:10 +0200 Subject: [PATCH] OSX crash bugfix --- src/qtgui/glwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtgui/glwidget.cpp b/src/qtgui/glwidget.cpp index 2c810285..b7b271b7 100644 --- a/src/qtgui/glwidget.cpp +++ b/src/qtgui/glwidget.cpp @@ -795,7 +795,7 @@ void GLWidget::wheelEvent(QWheelEvent *event) { } void GLWidget::mousePressEvent(QMouseEvent *event) { - if (!m_preview->isRunning()) + if (!m_preview->isRunning() || m_context == NULL || m_context->scene == NULL) return; m_mousePos = event->pos(); m_initialMousePos = mapToGlobal(m_mousePos);