From c706e2e1f9a50b789c3498eabf6068b35f95ce96 Mon Sep 17 00:00:00 2001 From: ronso0 Date: Thu, 29 Jul 2021 13:28:51 +0200 Subject: [PATCH] always show tooltips in preferences --- src/mixxx.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mixxx.cpp b/src/mixxx.cpp index 19437dd3bcf..86f4a2c0c67 100644 --- a/src/mixxx.cpp +++ b/src/mixxx.cpp @@ -1606,8 +1606,13 @@ void MixxxMainWindow::rebootMixxxView() { bool MixxxMainWindow::eventFilter(QObject* obj, QEvent* event) { if (event->type() == QEvent::ToolTip) { - // return true for no tool tips - switch (m_toolTipsCfg) { + // always show tooltips in the preferences window + QWidget* activeWindow = QApplication::activeWindow(); + if (activeWindow && + QLatin1String(activeWindow->metaObject()->className()) != + "DlgPreferences") { + // return true for no tool tips + switch (m_toolTipsCfg) { case mixxx::TooltipsPreference::TOOLTIPS_ONLY_IN_LIBRARY: if (dynamic_cast(obj) != nullptr) { return true; @@ -1620,6 +1625,7 @@ bool MixxxMainWindow::eventFilter(QObject* obj, QEvent* event) { default: DEBUG_ASSERT(!"m_toolTipsCfg value unknown"); return true; + } } } // standard event processing