mirror of https://github.com/CGAL/cgal
deleting selection item in OpenMesh plugin when there is no selection
This commit is contained in:
parent
cc77715588
commit
e65e2a0950
|
|
@ -124,6 +124,8 @@ load(QFileInfo fileinfo, bool& ok, bool add_to_scene){
|
|||
res << item;
|
||||
if(!selection_item->isEmpty())
|
||||
res << selection_item;
|
||||
else
|
||||
delete selection_item;
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue