Fix crash on loading projects

This commit is contained in:
dt
2010-03-18 15:35:00 +01:00
parent 61a504c427
commit 5058233bdd

View File

@@ -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);
}
}
}