forked from qt-creator/qt-creator
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:
committed by
Thomas Hartmann
parent
8ae505f30e
commit
97ede133a9
@@ -305,7 +305,7 @@ bool QmlProject::supportsKit(const Kit *k, QString *errorMessage) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (dev->type() == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE) {
|
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 (static_cast<QtSupport::DesktopQtVersion *>(version)->qmlsceneCommand().isEmpty()) {
|
||||||
if (errorMessage)
|
if (errorMessage)
|
||||||
*errorMessage = tr("Qt version has no qmlscene command.");
|
*errorMessage = tr("Qt version has no qmlscene command.");
|
||||||
|
Reference in New Issue
Block a user