diff --git a/src/shared/proparser/profileevaluator.cpp b/src/shared/proparser/profileevaluator.cpp
index 0aea2bcbc07a1cf4632dfb9fd5c2e9a0e67e477d..95bd578d9fc1ade933e388c37eab46ddc2d777af 100644
--- a/src/shared/proparser/profileevaluator.cpp
+++ b/src/shared/proparser/profileevaluator.cpp
@@ -351,10 +351,10 @@ bool ProFileEvaluator::Private::parseLine(const QString &line0)
     } else {
         if (!m_syntaxError) {
             updateItem();
-            if (!m_contNextLine)
-                finalizeBlock();
+            finalizeBlock();
+            return true;
         }
-        return !m_syntaxError;
+        return false;
     }
 }