diff --git a/src/webots/gui/WbView3D.cpp b/src/webots/gui/WbView3D.cpp index e893b45c935..fa25dfa96a9 100644 --- a/src/webots/gui/WbView3D.cpp +++ b/src/webots/gui/WbView3D.cpp @@ -1569,7 +1569,6 @@ void WbView3D::mousePressEvent(QMouseEvent *event) { mDragVerticalAxisRotate) return; - #ifdef __APPLE__ // Fix an issue on macOS where the context menu was not closed by a click. delete mParentWidget->findChild("ContextMenu");