diff --git a/src/plugins/qtsupport/qtoptionspage.cpp b/src/plugins/qtsupport/qtoptionspage.cpp index 356469e4c2fe954d5042262252aedf3fb1e3fda2..f8e829a2e08c4532e74e7e382b6d4bb42486ccd1 100644 --- a/src/plugins/qtsupport/qtoptionspage.cpp +++ b/src/plugins/qtsupport/qtoptionspage.cpp @@ -629,6 +629,8 @@ void QtOptionsPageWidget::editPath() if (qtVersion.isNull()) return; BaseQtVersion *version = QtVersionFactory::createQtVersionFromQMakePath(qtVersion); + if (!version) + return; // Same type? then replace! if (current->type() != version->type()) { // not the same type, error out