metadata
Wenzel Jakob 2011-04-28 15:31:01 +02:00
commit b9d3d53f7c
1 changed files with 1 additions and 1 deletions

View File

@ -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);