mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
refuse to run on qt5.7.0
This commit is contained in:
parent
6a109caa7c
commit
adda80fc33
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,9 @@ if os.environ.get("DEBUG"):
|
||||||
|
|
||||||
qtmajor = (QT_VERSION & 0xff0000) >> 16
|
qtmajor = (QT_VERSION & 0xff0000) >> 16
|
||||||
qtminor = (QT_VERSION & 0x00ff00) >> 8
|
qtminor = (QT_VERSION & 0x00ff00) >> 8
|
||||||
|
qtpoint = QT_VERSION & 0xff
|
||||||
|
|
||||||
if qtmajor < 5 or (qtmajor == 5 and qtminor < 5):
|
if qtmajor < 5 or (qtmajor == 5 and qtminor < 5):
|
||||||
raise Exception("Qt must be 5.5+")
|
raise Exception("Qt must be 5.5+")
|
||||||
|
if qtmajor == 5 and qtminor == 7 and qtpoint == 0:
|
||||||
|
raise Exception("Your Qt version is known to be broken.")
|
||||||
|
|
Loading…
Reference in a new issue