Commit 4440a3b7 authored by dt's avatar dt
Browse files

QtVersionNumber: Fix crash

Checking the string for validity is not enough, actually bailing out if
it is invalid is better...
parent 7effd0e2
......@@ -1938,8 +1938,10 @@ QtVersionNumber::QtVersionNumber(int ma, int mi, int p)
QtVersionNumber::QtVersionNumber(const QString &versionString)
if (!checkVersionString(versionString))
if (!checkVersionString(versionString)) {
majorVersion = minorVersion = patchVersion = -1;
QStringList parts = versionString.split(QLatin1Char('.'));
majorVersion =;
Supports Markdown
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