Commit 4578fe0a authored by Michael Pyne's avatar Michael Pyne

Fix off-by-one with priority array.

Caught by Coverity, CID 1340882.
parent fa545c5a
......@@ -102,7 +102,7 @@ void LogViewWidgetSearchLine::updateSearch(const QString &pattern)
void LogViewWidgetSearchLine::setPriorityEnabled(int priority, bool enabled)
{
if ((priority < 0) || (priority > Globals::LOG_LEVEL_NUM))
if ((priority < 0) || (priority >= Globals::LOG_LEVEL_NUM))
return;
d->priorities[priority] = enabled;
updateSearch(QString());
......
Markdown is supported
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