From 6980ccf8e1b2564a2810e5ba148ecc55bced20b5 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 9 Feb 2016 10:46:36 +0100 Subject: [PATCH] QmlProfiler: Fix Qt version comparison for connection type The previous code would fail on Qt versions n.0 to n.5 with n > 5. Change-Id: I7e9d512bab269137862370db86e0da19e250059e Reviewed-by: Joerg Bornemann --- src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp b/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp index 381a0dc5a44..ae225bafe80 100644 --- a/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp @@ -86,8 +86,7 @@ RunControl *QmlProfilerRunControlFactory::create(RunConfiguration *runConfigurat AnalyzerConnection connection; const QtSupport::BaseQtVersion *version = QtSupport::QtKitInformation::qtVersion(kit); if (version) { - QtSupport::QtVersionNumber versionNumber = version->qtVersion(); - if (versionNumber.majorVersion >= 5 && versionNumber.minorVersion >= 6) + if (version->qtVersion() >= QtSupport::QtVersionNumber(5, 6, 0)) connection.analyzerSocket = LocalQmlProfilerRunner::findFreeSocket(); else connection.analyzerPort = LocalQmlProfilerRunner::findFreePort(connection.analyzerHost);