forked from qt-creator/qt-creator
Fix crash when opening generic project
target t is deleted inside removeTarget(t) Change-Id: I9d5a07d65a2cb0c47869edf3997a44a526b9930e Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -431,7 +431,6 @@ bool GenericProject::fromMap(const QVariantMap &map)
|
|||||||
foreach (Target *t, targetList) {
|
foreach (Target *t, targetList) {
|
||||||
if (!t->activeBuildConfiguration()) {
|
if (!t->activeBuildConfiguration()) {
|
||||||
removeTarget(t);
|
removeTarget(t);
|
||||||
delete t;
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!t->activeRunConfiguration())
|
if (!t->activeRunConfiguration())
|
||||||
|
Reference in New Issue
Block a user