diff options
-rw-r--r-- | qt-models/filtermodels.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp index 925931480..f0178d3e1 100644 --- a/qt-models/filtermodels.cpp +++ b/qt-models/filtermodels.cpp @@ -222,7 +222,7 @@ bool TagFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel * while (head) { QString tagName(head->tag->name); int index = tagList.indexOf(tagName); - if (checkState[index]) + if (index >= 0 && checkState[index]) return !negate; head = head->next; } |