diff --git a/plugins/cmake/settings/cmakecachemodel.cpp b/plugins/cmake/settings/cmakecachemodel.cpp --- a/plugins/cmake/settings/cmakecachemodel.cpp +++ b/plugins/cmake/settings/cmakecachemodel.cpp @@ -71,8 +71,10 @@ { QString line = in.readLine().trimmed(); if(line.startsWith(QLatin1String("//"))) - currentComment += line.mid(2); - else if(!line.isEmpty() && !line.startsWith(QLatin1Char('#'))) //it is a variable + { + line.remove(0, 2); + currentComment += line; + } else if(!line.isEmpty() && !line.startsWith(QLatin1Char('#'))) //it is a variable { CacheLine c; c.readLine(line); @@ -137,10 +139,6 @@ m_internalBegin=currentIdx; // qCDebug(CMAKE) << "Comment: " << line << " -.- " << currentIdx; } - else if(!line.startsWith(QLatin1Char('#')) && !line.isEmpty()) - { - qCDebug(CMAKE) << "unrecognized cache line: " << line; - } } }