Skip to content

Commit

Permalink
always show tooltips in preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Jul 29, 2021
1 parent 2d399f2 commit 6b47edc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/mixxxmainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1073,8 +1073,11 @@ bool MixxxMainWindow::loadConfiguredSkin() {

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* actWin = QApplication::activeWindow();
if (actWin && QLatin1String(actWin->metaObject()->className()) != "DlgPreferences") {
// return true for no tool tips
switch (m_toolTipsCfg) {
case mixxx::TooltipsPreference::TOOLTIPS_ONLY_IN_LIBRARY:
if (dynamic_cast<WBaseWidget*>(obj) != nullptr) {
return true;
Expand All @@ -1087,6 +1090,7 @@ bool MixxxMainWindow::eventFilter(QObject* obj, QEvent* event) {
default:
DEBUG_ASSERT(!"m_toolTipsCfg value unknown");
return true;
}
}
}
// standard event processing
Expand Down

0 comments on commit 6b47edc

Please sign in to comment.