Skip to content

Commit

Permalink
Fix for Bug #4372
Browse files Browse the repository at this point in the history
  • Loading branch information
tsadowski authored and wwmayer committed Jul 11, 2020
1 parent 45b96ca commit 645cbd6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Gui/MainWindow.cpp
Expand Up @@ -810,12 +810,9 @@ bool MainWindow::event(QEvent *e)
if (!temp)
return true;
View3DInventorViewer *view = temp->getViewer();
if (!view)
return true;
QWidget *viewWidget = view->getGLWidget();
if (viewWidget) {
if (view) {
Spaceball::MotionEvent anotherEvent(*motionEvent);
qApp->sendEvent(viewWidget, &anotherEvent);
qApp->sendEvent(view, &anotherEvent);
}
return true;
}else if(e->type() == QEvent::StatusTip) {
Expand Down

0 comments on commit 645cbd6

Please sign in to comment.