Fix for my last commit

This commit is contained in:
YuSanka 2018-12-04 18:14:02 +01:00
parent 27b95584f4
commit 9e19e43818

View File

@ -1075,8 +1075,8 @@ bool PrusaObjectDataViewModel::IsEnabled(const wxDataViewItem &item, unsigned in
wxASSERT(item.IsOk());
PrusaObjectDataViewModelNode *node = (PrusaObjectDataViewModelNode*)item.GetID();
// disable extruder selection for the "Settings" item
return !(col == 2 && node->m_extruder.IsEmpty());
// disable extruder selection for the non "itObject|itVolume" item
return !(col == 1 && node->m_extruder.IsEmpty());
}
wxDataViewItem PrusaObjectDataViewModel::GetParent(const wxDataViewItem &item) const