diff --git a/gui/preferencesdialog.cpp b/gui/preferencesdialog.cpp index 655f48224..ec64fe9da 100644 --- a/gui/preferencesdialog.cpp +++ b/gui/preferencesdialog.cpp @@ -55,6 +55,7 @@ #endif #include "scrobbling/scrobblingsettings.h" #include +#include static int iCount=0; @@ -138,6 +139,10 @@ PreferencesDialog::PreferencesDialog(QWidget *parent) #endif setAttribute(Qt::WA_DeleteOnClose); setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); + + // Under OSX if we dont set focus, then a weird blue line is shown to the right of the item list + // this line looks like part of a focus highlight. Odd, but setting focus works-around this... + QTimer::singleShot(0, pageWidget, SLOT(setFocus())); } PreferencesDialog::~PreferencesDialog() diff --git a/support/pagewidget.h b/support/pagewidget.h index 9ce7c376d..b42993a25 100644 --- a/support/pagewidget.h +++ b/support/pagewidget.h @@ -80,6 +80,9 @@ public: PageWidgetItem * currentPage() const; void setCurrentPage(PageWidgetItem *item); +public Q_SLOTS: + void setFocus(); + Q_SIGNALS: void currentPageChanged();