Stop QTC_ASSERT from being triggered

Set up UI elements before they are used. No crash since the elements
are guarded by QTC_ASSERTs, but annoying output.
(cherry picked from commit 1df460426b)
This commit is contained in:
Tobias Hunger
2011-04-13 15:50:14 +02:00
committed by con
parent 30b7370f5b
commit fc46f30020

View File

@@ -567,14 +567,14 @@ Internal::GccToolChainConfigWidget::GccToolChainConfigWidget(GccToolChain *tc) :
connect(m_compilerPath, SIGNAL(changed(QString)), this, SLOT(handlePathChange()));
layout->addRow(tr("&Compiler path:"), m_compilerPath);
addDebuggerCommandControls(layout, gnuVersionArgs);
addErrorLabel(layout);
populateAbiList(tc->supportedAbis());
layout->addRow(tr("&ABI:"), m_abiComboBox);
connect(m_abiComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(handleAbiChange()));
addDebuggerCommandControls(layout, gnuVersionArgs);
addErrorLabel(layout);
setFromToolchain();
}