From b89b674a1dd36e62a09632304c0ef8cc14bd858e Mon Sep 17 00:00:00 2001 From: Torsten Sadowski Date: Wed, 8 Jul 2020 00:30:05 +0200 Subject: [PATCH] Fix for Bug #4372 --- src/Gui/MainWindow.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp index 458993b560..d53de6ff6d 100644 --- a/src/Gui/MainWindow.cpp +++ b/src/Gui/MainWindow.cpp @@ -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) {