diff --git a/src/shared/proparser/proeditormodel.cpp b/src/shared/proparser/proeditormodel.cpp
index 787ea76410fec39e44f35b30fcbd33ec56dfb46a..c11e8668e3f5af50219887014405ae8df0371757 100644
--- a/src/shared/proparser/proeditormodel.cpp
+++ b/src/shared/proparser/proeditormodel.cpp
@@ -923,7 +923,7 @@ QVariant ProScopeFilter::data(const QModelIndex &index, int role) const
 {
     bool checkable =
         m_checkable == ProScopeFilter::Blocks
-        || m_checkable == ProScopeFilter::Variable && sourceVariable(index);
+        || (m_checkable == ProScopeFilter::Variable && sourceVariable(index));
 
     if (checkable && role == Qt::CheckStateRole) {
         QModelIndex srcindex = mapToSource(index);