forked from qt-creator/qt-creator
projectexplorer: avoid crash if recovery of kit fails
Change-Id: I8bf3a24b1485da2bfd1eb13e61c2712b66b30a70 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -784,6 +784,7 @@ void Project::createTargetFromMap(const QVariantMap &map, int index)
|
|||||||
kit->makeReplacementKit();
|
kit->makeReplacementKit();
|
||||||
kit->setup();
|
kit->setup();
|
||||||
}, id);
|
}, id);
|
||||||
|
QTC_ASSERT(k, return);
|
||||||
TaskHub::addTask(BuildSystemTask(Task::Warning, tr("Project \"%1\" was configured for "
|
TaskHub::addTask(BuildSystemTask(Task::Warning, tr("Project \"%1\" was configured for "
|
||||||
"kit \"%2\" with id %3, which does not exist anymore. The new kit \"%4\" was "
|
"kit \"%2\" with id %3, which does not exist anymore. The new kit \"%4\" was "
|
||||||
"created in its place, in an attempt not to lose custom project settings.")
|
"created in its place, in an attempt not to lose custom project settings.")
|
||||||
|
Reference in New Issue
Block a user