From 1da51475eb77f44052b10bc0f9be8d3c9e421b49 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Fri, 24 Jul 2009 01:12:18 +0200 Subject: [PATCH] simplified() instead of trimmed() --- src/SearchView.cpp | 4 ++-- src/SearchView.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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__ -- 2.39.5