#3037 Guard pointer access

This commit is contained in:
Magne Sjaastad 2018-06-11 12:39:26 +02:00
parent e370dee3b0
commit e814272bea

View File

@ -104,6 +104,8 @@ void PdmUiComboBoxEditor::configureAndUpdateUi(const QString& uiConfigName)
m_comboBox->blockSignals(false); m_comboBox->blockSignals(false);
} }
if (!m_layout.isNull())
{
if (attributes.showPreviousAndNextButtons) if (attributes.showPreviousAndNextButtons)
{ {
if (m_previousItemButton.isNull()) if (m_previousItemButton.isNull())
@ -171,6 +173,7 @@ void PdmUiComboBoxEditor::configureAndUpdateUi(const QString& uiConfigName)
} }
} }
} }
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
// Special class used to prevent a combo box to steal focus when scrolling // Special class used to prevent a combo box to steal focus when scrolling