mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
refuse to load on qt5.8.0 due to lack of IME support, etc
This commit is contained in:
parent
9c2c590de9
commit
8085f8bc04
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ qtmajor = (QT_VERSION & 0xff0000) >> 16
|
||||||
qtminor = (QT_VERSION & 0x00ff00) >> 8
|
qtminor = (QT_VERSION & 0x00ff00) >> 8
|
||||||
qtpoint = QT_VERSION & 0xff
|
qtpoint = QT_VERSION & 0xff
|
||||||
|
|
||||||
if qtmajor == 5 and qtminor == 7 and qtpoint == 0:
|
if ((qtmajor == 5 and qtminor == 7 and qtpoint == 0) or
|
||||||
|
(qtmajor == 5 and qtminor == 8 and qtpoint == 0)):
|
||||||
raise Exception("Your Qt version is known to be broken.")
|
raise Exception("Your Qt version is known to be broken.")
|
||||||
elif qtmajor <= 5 and qtminor < 7:
|
elif qtmajor <= 5 and qtminor < 7:
|
||||||
raise Exception("Anki requires Qt 5.7.1+")
|
raise Exception("Anki requires Qt 5.7.1+")
|
||||||
|
|
Loading…
Reference in a new issue