Changed sequence of the items in the objects list (inside object): Additional Settings, Subvolumes(parts), Instances

This commit is contained in:
YuSanka 2018-11-06 11:39:38 +01:00
parent 7dcfe57db1
commit 0ac17b5513
2 changed files with 18 additions and 17 deletions

View file

@ -387,7 +387,8 @@ void ObjectList::on_drop(wxDataViewEvent &event)
wxDataViewItem item(event.GetItem());
// only allow drops for item, not containers
if (item.IsOk() && m_objects_model->GetParent(item) == wxDataViewItem(0) ||
if (m_selected_object_id < 0 ||
item.IsOk() && m_objects_model->GetParent(item) == wxDataViewItem(0) ||
event.GetDataFormat() != wxDF_UNICODETEXT || m_objects_model->GetItemType(item) != itVolume) {
event.Veto();
return;