Commit 81912724 authored by Daniel Teske's avatar Daniel Teske Committed by Tobias Hunger

TargetsetupPage: Fix crash

The case looks like this:
Two kits on the targetsetuppage.
- Already existing kit, selected
- Temporary kit not selected

Switch reset() and setupProject() to the order they had before
the TargetSetupPage generalization.

Task-number: QTCREATORBUG-10417

Change-Id: I51cfb1e01193c57e06aebeaa8defa11809e24c50
Reviewed-by: default avatarMitch Curtis <mitch.curtis@digia.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 3164faa4
......@@ -520,9 +520,9 @@ bool TargetSetupPage::setupProject(Project *project)
widget->clearKit();
}
reset();
project->setup(toSetUp);
reset(); // This will delete the pointers held in toSetUp!
toSetUp.clear();
Target *activeTarget = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment