Skip to content

Commit

Permalink
FEM: do not guard module imports if the module will be imported in gu…
Browse files Browse the repository at this point in the history
…i mode only
  • Loading branch information
berndhahnebach committed Feb 27, 2020
1 parent 0e62b05 commit 802832f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Mod/Fem/femsolver/reportdialog.py
Expand Up @@ -26,10 +26,9 @@
## \addtogroup FEM
# @{

import FreeCAD

if FreeCAD.GuiUp:
from PySide import QtGui
# it is a Gui only module and should only be imported in Gui mode
# thus no guard is needed
from PySide import QtGui


ERROR_COLOR = "red"
Expand Down

0 comments on commit 802832f

Please sign in to comment.