From c3cf0638d6528707606cc95ff8691a1bc2ccfd14 Mon Sep 17 00:00:00 2001 From: mniip Date: Mon, 16 Dec 2013 00:17:40 +0400 Subject: [PATCH] This ! shouldn't be there --- src/gui/elementsearch/ElementSearchActivity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/elementsearch/ElementSearchActivity.cpp b/src/gui/elementsearch/ElementSearchActivity.cpp index accaa6aff..92a5c72be 100644 --- a/src/gui/elementsearch/ElementSearchActivity.cpp +++ b/src/gui/elementsearch/ElementSearchActivity.cpp @@ -110,7 +110,7 @@ void ElementSearchActivity::searchTools(std::string query) exactmatches.push_back(*iter); else if(!strncmp(nameLower.c_str(), queryLower.c_str(), queryLower.length())) frontmatches.push_back(*iter); - else if(!strstr(nameLower.c_str(), queryLower.c_str())) + else if(strstr(nameLower.c_str(), queryLower.c_str())) matches.push_back(*iter); }