Skip to content

Commit

Permalink
[AddonManager] Fix regression introduced by FreeCAD#15676 (me)... (Fr…
Browse files Browse the repository at this point in the history
…eeCAD#15688)

* [AddonManager] Fix regression introduced by FreeCAD#15676...

...it disabled composite view for more than intended

* [AddonManager] Use QLibraryInfo major and minor version
  • Loading branch information
Syres916 committed Aug 4, 2024
1 parent c0c7bd6 commit c845c97
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ def _setup_ui(self):

self.composite_button = QtWidgets.QToolButton(self)
self.composite_button.setObjectName("composite_button")
qtcore_major_ver = int(float(QtCore.qVersion()[0]))
qtcore_minor_ver = int(float(QtCore.qVersion()[2]))
if qtcore_major_ver == 5 and qtcore_minor_ver < 15:
if (
QtCore.QLibraryInfo.version().majorVersion() == 5
and QtCore.QLibraryInfo.version().minorVersion() < 15
):
self.composite_button.setEnabled(False)
self.composite_button.setCheckable(False)
self.composite_button.setChecked(False)
Expand Down

0 comments on commit c845c97

Please sign in to comment.