forked from qt-creator/qt-creator
Python: Fix compile for gcc < 6.0
Change-Id: Ia7ef177677a65aa565755313ee9d023aa8e53ef0 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -191,7 +191,7 @@ void InterpreterOptionsWidget::currentChanged(const QModelIndex &index, const QM
|
||||
void InterpreterOptionsWidget::addItem()
|
||||
{
|
||||
const QModelIndex &index = m_model.indexForItem(
|
||||
m_model.appendItem({QUuid::createUuid().toString(), "Python", FilePath()}));
|
||||
m_model.appendItem({QUuid::createUuid().toString(), QString("Python"), FilePath()}));
|
||||
QTC_ASSERT(index.isValid(), return);
|
||||
m_view.setCurrentIndex(index);
|
||||
}
|
||||
|
Reference in New Issue
Block a user