From eb240c219c1966e53aae24de0060c002b860c3af Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 19 Feb 2021 21:44:48 +0100 Subject: [PATCH] PD: [skip ci] do not pop-up dialog when creating a body while another body is selected --- src/Mod/PartDesign/Gui/CommandBody.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Mod/PartDesign/Gui/CommandBody.cpp b/src/Mod/PartDesign/Gui/CommandBody.cpp index 61824c58c5..a73bd62630 100644 --- a/src/Mod/PartDesign/Gui/CommandBody.cpp +++ b/src/Mod/PartDesign/Gui/CommandBody.cpp @@ -127,9 +127,7 @@ void CmdPartDesignBody::activated(int iMsg) baseFeature = nullptr; } else if ( baseFeature->isDerivedFrom ( Part::BodyBase::getClassTypeId() ) ) { - // Prevent creating bodies based on bodies - QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Bad base feature"), - QObject::tr("Body can't be based on another body.")); + // Prevent creating bodies based on bodies (but don't pop-up a dialog) baseFeature = nullptr; } else {