BIM: fix invalid converesion of button to int

This commit is contained in:
Jiří Pinkava
2024-08-28 14:20:56 +02:00
committed by Yorik van Havre
parent 66539741ac
commit c0c5cab36b
3 changed files with 3 additions and 3 deletions

View File

@@ -536,7 +536,7 @@ class BIM_Library_TaskPanel:
from PySide import QtGui
return int(QtGui.QDialogButtonBox.Close)
return QtGui.QDialogButtonBox.Close
def reject(self):

View File

@@ -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

View File

@@ -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()