diff --git a/src/layui/layui/layPropertiesDialog.cc b/src/layui/layui/layPropertiesDialog.cc index 0e794983f..6ecffff16 100644 --- a/src/layui/layui/layPropertiesDialog.cc +++ b/src/layui/layui/layPropertiesDialog.cc @@ -343,9 +343,9 @@ PropertiesDialog::current_index_changed (const QModelIndex &index, const QModelI m_object_indexes.push_back (oi); } - } else { + } else if (mp_properties_pages [m_index]->count () > 0) { - m_object_indexes.push_back (size_t (mp_tree_model->object_index (index))); + m_object_indexes.push_back (0); }