Added delete_instance_from_list(obj_idx, inst_idx) function

This commit is contained in:
YuSanka 2018-11-13 13:34:31 +01:00
parent b721f9431a
commit ad8f270796
2 changed files with 6 additions and 0 deletions

View File

@ -1155,6 +1155,11 @@ void ObjectList::delete_volume_from_list(const size_t obj_idx, const size_t vol_
select_item(m_objects_model->Delete(m_objects_model->GetItemByVolumeId(obj_idx, vol_idx)));
}
void ObjectList::delete_instance_from_list(const size_t obj_idx, const size_t inst_idx)
{
select_item(m_objects_model->Delete(m_objects_model->GetItemByInstanceId(obj_idx, inst_idx)));
}
void ObjectList::delete_all_objects_from_list()
{
m_objects_model->DeleteAll();

View File

@ -116,6 +116,7 @@ public:
void delete_object_from_list();
void delete_object_from_list(const size_t obj_idx);
void delete_volume_from_list(const size_t obj_idx, const size_t vol_idx);
void delete_instance_from_list(const size_t obj_idx, const size_t inst_idx);
// Delete all objects from the list
void delete_all_objects_from_list();
// Increase instances count