From cc0f72953fe8b96a447f9c1e8df9f0d1494fb154 Mon Sep 17 00:00:00 2001 From: luz paz Date: Mon, 15 Feb 2021 15:40:15 -0500 Subject: [PATCH] 3Dconnexion: Clarify ambivalent console output warning This commit simply demystifies the warning that most users will see when they boot in to FreeCAD "Couldn't connect to spacenav daemon." by adding "Please ignore if you don't have a spacemouse." --- src/Gui/3Dconnexion/GuiNativeEventLinux.cpp | 2 +- src/Gui/3Dconnexion/GuiNativeEventLinuxX11.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gui/3Dconnexion/GuiNativeEventLinux.cpp b/src/Gui/3Dconnexion/GuiNativeEventLinux.cpp index f785a43a80..aaec4ebaf2 100644 --- a/src/Gui/3Dconnexion/GuiNativeEventLinux.cpp +++ b/src/Gui/3Dconnexion/GuiNativeEventLinux.cpp @@ -49,7 +49,7 @@ void Gui::GuiNativeEvent::initSpaceball(QMainWindow *window) { Q_UNUSED(window) if (spnav_open() == -1) { - Base::Console().Log("Couldn't connect to spacenav daemon\n"); + Base::Console().Log("Couldn't connect to spacenav daemon. Please ignore if you don't have a spacemouse.\n"); } else { Base::Console().Log("Connected to spacenav daemon\n"); QSocketNotifier* SpacenavNotifier = new QSocketNotifier(spnav_fd(), QSocketNotifier::Read, this); diff --git a/src/Gui/3Dconnexion/GuiNativeEventLinuxX11.cpp b/src/Gui/3Dconnexion/GuiNativeEventLinuxX11.cpp index 364ed8ca39..cf2711b352 100644 --- a/src/Gui/3Dconnexion/GuiNativeEventLinuxX11.cpp +++ b/src/Gui/3Dconnexion/GuiNativeEventLinuxX11.cpp @@ -73,7 +73,7 @@ void Gui::GuiNativeEvent::initSpaceball(QMainWindow *window) } #endif if (spnav_x11_open(QX11Info::display(), window->winId()) == -1) { - Base::Console().Log("Couldn't connect to spacenav daemon on X11\n"); + Base::Console().Log("Couldn't connect to spacenav daemon on X11. Please ignore if you don't have a spacemouse.\n"); } else { Base::Console().Log("Connected to spacenav daemon on X11\n"); mainApp->setSpaceballPresent(true);