Python: Fix compile for gcc < 6.0

Change-Id: Ia7ef177677a65aa565755313ee9d023aa8e53ef0
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2019-07-30 10:35:07 +02:00
parent 0a19b8e115
commit fd4c04407f

View File

@@ -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);
}