QmlDesigner: Check if index is positive

Task-number: QDS-2999
Change-Id: I61f4aba59124e6b0eeb0089da31631e7f4e59cbf
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Marco Bubke
2020-10-26 16:06:55 +01:00
parent 6e846b6606
commit 0f02fd7c87

View File

@@ -131,6 +131,9 @@ void ListModelEditorDialog::removeColumns()
void ListModelEditorDialog::changeHeader(int column)
{
if (column < 0)
return;
const QString propertyName = QString::fromUtf8(m_model->propertyNames()[column]);
bool ok;