QmlProject: Fix selection of supported kits

This now fixes the auto-selection of kits for me.

Task-number: QTCREATORBUG-19717
Change-Id: I39581ab2471211e9553c345164bb3ce788242dad
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Tobias Hunger
2018-03-08 17:46:51 +01:00
committed by Thomas Hartmann
parent 8ae505f30e
commit 97ede133a9

View File

@@ -305,7 +305,7 @@ bool QmlProject::supportsKit(const Kit *k, QString *errorMessage) const
}
if (dev->type() == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE) {
if (version->type() != QtSupport::Constants::DESKTOPQT) {
if (version->type() == QtSupport::Constants::DESKTOPQT) {
if (static_cast<QtSupport::DesktopQtVersion *>(version)->qmlsceneCommand().isEmpty()) {
if (errorMessage)
*errorMessage = tr("Qt version has no qmlscene command.");