forked from qt-creator/qt-creator
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 <joerg.bornemann@theqtcompany.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user