[PD] remove more superfluous nullptr checks
This commit is contained in:
@@ -200,7 +200,7 @@ void Workbench::setupContextMenu(const char* recipient, Gui::MenuItem* item) con
|
||||
|
||||
if ( docHaveBodies ) {
|
||||
bool addMoveFeature = true;
|
||||
bool addMoveFeatureInTree = (body != nullptr);
|
||||
bool addMoveFeatureInTree = body;
|
||||
for (auto sel: selection) {
|
||||
// if at least one selected feature cannot be moved to a body
|
||||
// disable the entry
|
||||
|
||||
Reference in New Issue
Block a user