Closed YakoYakoYokuYoku closed 7 months ago
Because QtWidgets.QDialogButtonBox.StandardButtons are already converted into ints in FreeCAD's Gui::TaskDialogPython::getStandardButtons, such conversions in workbench code aren't needed. Also this fixes compatibility with PySide6.
QtWidgets.QDialogButtonBox.StandardButtons
int
Gui::TaskDialogPython::getStandardButtons
https://github.com/FreeCAD/FreeCAD/blob/b9bfa5c5507506e4515816414cd27f4851d00489/src/Gui/TaskView/TaskDialogPython.cpp#L736-L754
Thanks!
Because
QtWidgets.QDialogButtonBox.StandardButtons
are already converted intoint
s in FreeCAD'sGui::TaskDialogPython::getStandardButtons
, such conversions in workbench code aren't needed. Also this fixes compatibility with PySide6.https://github.com/FreeCAD/FreeCAD/blob/b9bfa5c5507506e4515816414cd27f4851d00489/src/Gui/TaskView/TaskDialogPython.cpp#L736-L754