X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fsearchview.cpp;h=2e3ac2769a846007bee9ff583a42927c1b2ef8ab;hb=6670ba1908780dd31492e266fcfb3221953ced87;hp=42707d477aa15a1ad919e43c75a16a6e53211cfe;hpb=88c218738b131208e6ae1602ce1fc0a24c5962a8;p=minitube diff --git a/src/searchview.cpp b/src/searchview.cpp index 42707d4..2e3ac27 100644 --- a/src/searchview.cpp +++ b/src/searchview.cpp @@ -133,7 +133,9 @@ SearchView::SearchView(QWidget *parent) : QWidget(parent) { searchLayout->setAlignment(Qt::AlignVCenter); queryEdit = new SearchLineEdit(this); +#ifndef APP_MAC queryEdit->setFont(biggerFont); +#endif connect(queryEdit, SIGNAL(search(const QString&)), SLOT(watch(const QString&))); connect(queryEdit, SIGNAL(textEdited(const QString &)), SLOT(textChanged(const QString &))); connect(queryEdit, SIGNAL(suggestionAccepted(Suggestion*)), SLOT(suggestionAccepted(Suggestion*))); @@ -200,7 +202,8 @@ void SearchView::appear() { updateRecentChannels(); queryEdit->selectAll(); queryEdit->enableSuggest(); - QTimer::singleShot(0, queryEdit, SLOT(setFocus())); + if (!queryEdit->hasFocus()) + QTimer::singleShot(10, queryEdit, SLOT(setFocus())); } void SearchView::updateRecentKeywords() {