FEM: print console message if a task dialog is open already for beamsection and shellthickness

This commit is contained in:
Bernd Hahnebach
2015-11-07 13:24:45 -02:00
committed by Yorik van Havre
parent ea6e65f9f8
commit 7847c6fcac
3 changed files with 13 additions and 3 deletions
+6 -1
View File
@@ -68,7 +68,12 @@ class _ViewProviderFemBeamSection:
return
def doubleClicked(self, vobj):
self.setEdit(vobj)
doc = FreeCADGui.getDocument(vobj.Object.Document)
if not doc.getInEdit():
doc.setEdit(vobj.Object.Name)
else:
FreeCAD.Console.PrintError('Active Task Dialog found! Please close this one first!\n')
return True
def __getstate__(self):
return None
@@ -68,7 +68,12 @@ class _ViewProviderFemShellThickness:
return
def doubleClicked(self, vobj):
self.setEdit(vobj)
doc = FreeCADGui.getDocument(vobj.Object.Document)
if not doc.getInEdit():
doc.setEdit(vobj.Object.Name)
else:
FreeCAD.Console.PrintError('Active Task Dialog found! Please close this one first!\n')
return True
def __getstate__(self):
return None
@@ -65,7 +65,7 @@ class _ViewProviderMechanicalMaterial:
if not doc.getInEdit():
doc.setEdit(vobj.Object.Name)
else:
FreeCAD.Console.PrintError('There is an active ViewProvider in EditMode! Please close this one!\n')
FreeCAD.Console.PrintError('Active Task Dialog found! Please close this one first!\n')
return True
def __getstate__(self):