Browse Source

Fix compat with PyQt >= PyQt 5.15.8

Signed-off-by: falkTX <falktx@falktx.com>
pull/1748/head
falkTX 1 year ago
parent
commit
4151e160f1
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      source/frontend/carla_shared.py

+ 6
- 1
source/frontend/carla_shared.py View File

@@ -38,7 +38,12 @@ except:
# ------------------------------------------------------------------------------------------------------------
# Imports (PyQt5)

from PyQt5.Qt import PYQT_VERSION_STR
# import changed in PyQt 5.15.8, so try both
try:
from PyQt5.Qt import PYQT_VERSION_STR
except ImportError:
from PyQt5.QtCore import PYQT_VERSION_STR

from PyQt5.QtCore import qFatal, QT_VERSION, QT_VERSION_STR, qWarning, QDir, QSettings
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QFileDialog, QMessageBox


Loading…
Cancel
Save