Commit 02871cb8 authored by Aurindam Jana's avatar Aurindam Jana Committed by Tobias Hunger

ToolChainOptionsPage: Check for null pointer

Change-Id: I33ec41f3f1bd58bd236bceac71d4c709957c8332
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent b437b988
......@@ -570,6 +570,8 @@ bool ToolChainOptionsPage::matches(const QString &s) const
void ToolChainOptionsPage::toolChainSelectionChanged()
{
if (!m_container)
return;
QModelIndex current = currentIndex();
(void)m_container->takeWidget(); // Prevent deletion.
QWidget *currentTcWidget = current.isValid() ? m_model->widget(current) : 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