Skip to content
Snippets Groups Projects
Commit f466e5d4 authored by delleceste's avatar delleceste
Browse files

Merge branch 'branch-filtering'

parents b8a64eaa b457a40f
No related branches found
No related tags found
No related merge requests found
......@@ -400,7 +400,7 @@ void Alarm::queryDB()
QString ored_handlers;
int i = 0;
if(m_handlers.size() > 0)
ored_handlers = "att_name LIKE '%" + m_handlers[0] + "' ";
ored_handlers = "att_name LIKE '%" + m_handlers[0] + "%' ";
for(i = 1; i < m_handlers.size(); i++)
ored_handlers += " OR att_name LIKE '%" + m_handlers[i] + "%' ";
if(dts.isValid() && dte.isValid() && dts < dte && ored_handlers.length() > 0) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment