mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-05 18:25:58 +03:00
windows: fix win 7 check
This commit is contained in:
parent
b52d2dc576
commit
3c29fa5619
2
main.cpp
2
main.cpp
@ -50,7 +50,7 @@ int main(int argc, char *argv[])
|
||||
// Use software opengl on Windows 7, because of issues with ANGLE.
|
||||
// More reading: http://doc.qt.io/qt-5/windows-requirements.html#graphics-drivers
|
||||
#ifdef Q_OS_WIN
|
||||
if (QString("7") == QSysInfo::productVersion()) {
|
||||
if (QSysInfo::productVersion().contains("7")) {
|
||||
app.setAttribute(Qt::AA_UseSoftwareOpenGL);
|
||||
} else {
|
||||
app.setAttribute(Qt::AA_UseOpenGLES);
|
||||
|
Loading…
Reference in New Issue
Block a user