From bad04150de9cfd214bb37991e98c91d61fc44b7c Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Tue, 26 Mar 2019 22:13:56 +0100 Subject: [PATCH] FEM: ccx tools solver, allow to open the task panel even if the analysis is not active --- .../femguiobjects/_ViewProviderFemSolverCalculix.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/Mod/Fem/femguiobjects/_ViewProviderFemSolverCalculix.py b/src/Mod/Fem/femguiobjects/_ViewProviderFemSolverCalculix.py index dbf0dc4a87..c073973ee1 100644 --- a/src/Mod/Fem/femguiobjects/_ViewProviderFemSolverCalculix.py +++ b/src/Mod/Fem/femguiobjects/_ViewProviderFemSolverCalculix.py @@ -77,17 +77,7 @@ class _ViewProviderFemSolverCalculix: def doubleClicked(self, vobj): doc = FreeCADGui.getDocument(vobj.Object.Document) if not doc.getInEdit(): - # may be go the other way around and just activate the analysis the user has doubleClicked on ?! - if FemGui.getActiveAnalysis() is not None: - if FemGui.getActiveAnalysis().Document is FreeCAD.ActiveDocument: - if self.Object in FemGui.getActiveAnalysis().Group: - doc.setEdit(vobj.Object.Name) - else: - FreeCAD.Console.PrintError('Activate the analysis this solver belongs to!\n') - else: - FreeCAD.Console.PrintError('Active Analysis is not in active Document!\n') - else: - FreeCAD.Console.PrintError('No active Analysis found!\n') + doc.setEdit(vobj.Object.Name) else: from PySide.QtGui import QMessageBox message = 'Active Task Dialog found! Please close this one before opening a new one!'