From 1405cddc6e258c29f232f19fcbc107cc1f8b8f72 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 8 Jan 2017 19:34:31 +1000 Subject: [PATCH] require qt5.7.1+ --- aqt/qt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/qt.py b/aqt/qt.py index 981618e54..86585b654 100644 --- a/aqt/qt.py +++ b/aqt/qt.py @@ -38,7 +38,7 @@ qtmajor = (QT_VERSION & 0xff0000) >> 16 qtminor = (QT_VERSION & 0x00ff00) >> 8 qtpoint = QT_VERSION & 0xff -if qtmajor < 5 or (qtmajor == 5 and qtminor < 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.") +elif qtmajor <= 5 and qtminor < 7: + raise Exception("Anki requires Qt 5.7.1+")