Commit 8d81f98c authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Fix possible crash in targetsetuppage



Change-Id: Icff504ca751e5ad6619b6c0caf72942227dbc7e0
Reviewed-by: default avatarThiago Macieira <thiago.macieira@intel.com>
parent 9fa3ba5c
......@@ -418,6 +418,7 @@ void TargetSetupPage::selectAtLeastOneTarget()
if (!atLeastOneTargetSelected) {
Qt4TargetSetupWidget *widget = m_firstWidget;
ProjectExplorer::Profile *defaultProfile = ProjectExplorer::ProfileManager::instance()->defaultProfile();
if (defaultProfile)
widget = m_widgets.value(defaultProfile->id(), m_firstWidget);
if (widget)
widget->setTargetSelected(true);
......
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