Commit d5e89cea authored by dt's avatar dt
Browse files

Qt4TargetSetupPage: On adding a import dir, disable default builds

The user probably wants to have just his builds.
parent 06ee3aee
......@@ -472,6 +472,18 @@ void Qt4DefaultTargetSetupWidget::addImportClicked()
tr("The Build found in %1 is incompatible with this target").arg(m_importLinePath->path()));
if (m_selected == m_enabled.size() && m_importInfos.isEmpty()) {
// All regular builds are enabled and we didn't have a import before
// That means we are still in the default setup, in that case
// we disable all the builds
m_selected = 0;
for (int i=0; i<m_enabled.size(); ++i) {
m_enabled[i] = false;>setChecked(false);
m_importEnabled << true;
Supports Markdown
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