From 80805910a61df16d113a6e5b9fe14dbe3644e767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Pinkava?= Date: Wed, 28 Aug 2024 14:20:56 +0200 Subject: [PATCH] BIM: fix invalid converesion of button to int --- src/Mod/BIM/bimcommands/BimLibrary.py | 2 +- src/Mod/BIM/bimcommands/BimPreflight.py | 2 +- src/Mod/BIM/bimcommands/BimWindows.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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()