FEM: Disable Show result button if there are no results in analysis

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
Przemo Firszt 2015-04-30 22:13:28 +01:00
parent 749e772d85
commit 70318d7820

View File

@ -174,8 +174,7 @@ class _CommandMechanicalShowResult:
FreeCADGui.Control.showDialog(taskd)
def IsActive(self):
import FemGui
return FreeCADGui.ActiveDocument is not None and FemGui.getActiveAnalysis() is not None
return FreeCADGui.ActiveDocument is not None and results_present()
class _FemAnalysis: