Remove ( and ) characters from FTS queries. Fixes issue #1010

This commit is contained in:
David Sansome 2010-12-04 18:16:00 +00:00
parent ba520b3793
commit 3216f5b75e
1 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,10 @@ LibraryQuery::LibraryQuery(const QueryOptions& options)
// Split on whitespace
QStringList tokens(options.filter.split(QRegExp("\\s+")));
QString query;
foreach (const QString& token, tokens) {
foreach (QString token, tokens) {
token.remove('(');
token.remove(')');
if (token.contains(':'))
query += "fts" + token + "* ";
else