diff --git a/src/plugins/projectexplorer/profilemodel.cpp b/src/plugins/projectexplorer/profilemodel.cpp index 76d5ffce64a..9802d4b5553 100644 --- a/src/plugins/projectexplorer/profilemodel.cpp +++ b/src/plugins/projectexplorer/profilemodel.cpp @@ -508,6 +508,9 @@ void ProfileModel::removeProfile(Profile *p) void ProfileModel::updateProfile(Profile *p) { ProfileNode *n = find(p); + // This can happen if Qt Versions and Profiles are removed simultaneously. + if (!n) + return; if (n->widget) n->widget->discard(); QModelIndex idx = index(n);