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); }