diff --git a/src/Mod/BIM/bimcommands/BimLibrary.py b/src/Mod/BIM/bimcommands/BimLibrary.py index e0f6846854..9a4045c6ba 100644 --- a/src/Mod/BIM/bimcommands/BimLibrary.py +++ b/src/Mod/BIM/bimcommands/BimLibrary.py @@ -536,7 +536,7 @@ class BIM_Library_TaskPanel: from PySide import QtGui - return int(QtGui.QDialogButtonBox.Close) + return QtGui.QDialogButtonBox.Close def reject(self): diff --git a/src/Mod/BIM/bimcommands/BimPreflight.py b/src/Mod/BIM/bimcommands/BimPreflight.py index 077d5a5f9d..ca59c4aa9e 100644 --- a/src/Mod/BIM/bimcommands/BimPreflight.py +++ b/src/Mod/BIM/bimcommands/BimPreflight.py @@ -158,7 +158,7 @@ class BIM_Preflight_TaskPanel: def getStandardButtons(self): from PySide import QtCore, QtGui - return int(QtGui.QDialogButtonBox.Close) + return QtGui.QDialogButtonBox.Close def reject(self): from PySide import QtCore, QtGui diff --git a/src/Mod/BIM/bimcommands/BimWindows.py b/src/Mod/BIM/bimcommands/BimWindows.py index 1e82efde95..65839f26e4 100644 --- a/src/Mod/BIM/bimcommands/BimWindows.py +++ b/src/Mod/BIM/bimcommands/BimWindows.py @@ -71,7 +71,7 @@ class BIM_Windows_TaskPanel: def getStandardButtons(self): from PySide import QtGui - return int(QtGui.QDialogButtonBox.Close) + return QtGui.QDialogButtonBox.Close def reject(self): FreeCADGui.Control.closeDialog()