diff --git a/src/Mod/Fem/Gui/Command.cpp b/src/Mod/Fem/Gui/Command.cpp index f5817dca0f..f99b7e33b5 100644 --- a/src/Mod/Fem/Gui/Command.cpp +++ b/src/Mod/Fem/Gui/Command.cpp @@ -1712,7 +1712,9 @@ void CmdFemPostPipelineFromResult::activated(int) bool CmdFemPostPipelineFromResult::isActive(void) { - return hasActiveDocument(); + // only activate if a result object is selected from which the pipeline can be loaded + std::vector results = getSelection().getObjectsOfType(); + return (results.size() == 1) ? true : false; } #endif