Commit 028a3296 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Clear regex list when setting new expressions

Since 020051c7 the objects were deleted but the list not cleared
parent e6a0e8ec
Pipeline #228115 passed with stage
in 2 minutes and 21 seconds
......@@ -530,6 +530,7 @@ void KQuery::setRegExp(const QString &regexp, bool caseSensitive)
const QStringList strList = regexp.split(QLatin1Char(';'), Qt::SkipEmptyParts);
// QRegExp globChars ("[\\*\\?\\[\\]]", TRUE, FALSE);
qDeleteAll(m_regexps);
m_regexps.clear();
m_regexps.reserve(strList.size());
// m_regexpsContainsGlobs.clear();
......
Supports Markdown
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