diff --git a/src/shared/proparser/profileevaluator.cpp b/src/shared/proparser/profileevaluator.cpp
index f1f444f74f97ddcc146b56673c5462e54996808c..e2643796ece87b7797a7a128e68c474bdd207831 100644
--- a/src/shared/proparser/profileevaluator.cpp
+++ b/src/shared/proparser/profileevaluator.cpp
@@ -507,8 +507,11 @@ bool ProFileEvaluator::Private::read(ProFile *pro, QTextStream *ts)
                     *ptr++ = c;
 
                   getNext:
-                    if (cur == end)
+                    if (cur == end) {
+                        if (!quote && !parens)
+                            goto flushItem;
                         break;
+                    }
                     c = *cur++;
                 }
             } else { // doSplit
@@ -534,6 +537,7 @@ bool ProFileEvaluator::Private::read(ProFile *pro, QTextStream *ts)
                 m_proitem.resize(ptr - (ushort *)m_proitem.unicode());
                 putSpace = !m_proitem.isEmpty();
             } else {
+              flushItem:
                 updateItem(ptr);
                 putSpace = false;
             }