forked from qt-creator/qt-creator
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:
@@ -131,6 +131,9 @@ void ListModelEditorDialog::removeColumns()
|
|||||||
|
|
||||||
void ListModelEditorDialog::changeHeader(int column)
|
void ListModelEditorDialog::changeHeader(int column)
|
||||||
{
|
{
|
||||||
|
if (column < 0)
|
||||||
|
return;
|
||||||
|
|
||||||
const QString propertyName = QString::fromUtf8(m_model->propertyNames()[column]);
|
const QString propertyName = QString::fromUtf8(m_model->propertyNames()[column]);
|
||||||
|
|
||||||
bool ok;
|
bool ok;
|
||||||
|
|||||||
Reference in New Issue
Block a user