Fix of compiler warning

This commit is contained in:
Jacob Støren 2015-08-14 15:17:30 +02:00
parent d3b1af3724
commit fc146bb554

View File

@ -179,7 +179,7 @@ void PdmUiToolBarEditor::configureAndUpdateUi(const QString& uiConfigName)
// Enabled state of a tool button is controlled by the QAction associated with a tool button
// Changing the state of a widget directly has no effect
// See Qt doc for QToolBar::insertWidget
QAction* action = m_actions[i];
QAction* action = m_actions[static_cast<int>(i)];
caf::PdmUiFieldHandle* uiFieldHandle = field->uiCapability();
if (uiFieldHandle)