Skip to content
Snippets Groups Projects
Commit 8e36341f authored by Martin Schultz's avatar Martin Schultz
Browse files

check Qt Version when command line arguments are parsed and disable stereo for...

check Qt Version when command line arguments are parsed and disable stereo for qt version 5.7.0 and 5.7.1
parent 23fb3f05
No related branches found
No related tags found
No related merge requests found
......@@ -307,6 +307,22 @@ bool parseCommandLineOptions(CSimpleOpt& args){
QString port;
//workaround for bug with stereo mode on Qt5.7.0 and Qt5.7.1
int QtVersionMajor, QtVersionMinor, QtVersionPatch;
if(sscanf(qVersion(),"%d.%d.%d",&QtVersionMajor, &QtVersionMinor, &QtVersionPatch) == 3)
{
if(QtVersionMajor == 5 && QtVersionMinor >= 7)
{
if(QtVersionPatch <= 2)
{
std::cerr << "The used Qt Version does not support stereo mode. Disabling stereo mode." << std::endl;
OpenFlipper::Options::stereo(false);
}
else
std::cerr << "Stereo Mode has not been tested for the used Qt Version." << std::endl;
}
}
// while there are arguments left to process
while (args.Next()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment