Commit 5058233b authored by dt's avatar dt
Browse files

Fix crash on loading projects

parent 61a504c4
......@@ -982,8 +982,11 @@ void QtVersion::updateVersionInfo() const
while (!stream.atEnd()) {
const QString line = stream.readLine();
const int index = line.indexOf(QLatin1Char(':'));
if (index != -1)
m_versionInfo.insert(line.left(index), QDir::fromNativeSeparators(line.mid(index+1)));
if (index != -1) {
QString value = QDir::fromNativeSeparators(line.mid(index+1));
if (value != "**Unknown**")
m_versionInfo.insert(line.left(index), value);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment