From: Flavio Tordini Date: Thu, 23 Jul 2009 23:12:18 +0000 (+0200) Subject: simplified() instead of trimmed() X-Git-Tag: 0.5~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1da51475eb77f44052b10bc0f9be8d3c9e421b49;p=minitube simplified() instead of trimmed() --- diff --git a/src/SearchView.cpp b/src/SearchView.cpp index 882ad29..61d1d04 100644 --- a/src/SearchView.cpp +++ b/src/SearchView.cpp @@ -137,12 +137,12 @@ void SearchView::updateRecentKeywords() { } void SearchView::watch() { - QString query = queryEdit->text().trimmed(); + QString query = queryEdit->text().simplified(); watch(query); } void SearchView::textChanged(const QString &text) { - watchButton->setEnabled(!text.trimmed().isEmpty()); + watchButton->setEnabled(!text.simplified().isEmpty()); } void SearchView::watch(QString query) { diff --git a/src/SearchView.h b/src/SearchView.h index e033c15..0db47b7 100644 --- a/src/SearchView.h +++ b/src/SearchView.h @@ -54,7 +54,6 @@ private: UpdateChecker *updateChecker; - }; #endif // __SEARCHVIEW_H__