Commit 8e36341f authored by Martin Schultz's avatar Martin Schultz

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
......@@ -305,7 +305,23 @@ bool remoteControl = false;
bool parseCommandLineOptions(CSimpleOpt& args){
QString port;
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()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment