diff --git a/src/comm/QGCFlightGearLink.cc b/src/comm/QGCFlightGearLink.cc index ea141ca7970dc729d5ffe960dcfcd24d406ebc38..890ca1e83fc8f470d4a772e46ef6a823d30f9ecb 100644 --- a/src/comm/QGCFlightGearLink.cc +++ b/src/comm/QGCFlightGearLink.cc @@ -544,15 +544,9 @@ bool QGCFlightGearLink::parseUIArguments(QString uiArgs, QStringList& argList) } else if (chr == '\"') { // Flip the state of being in a quoted string. Note that we specifically do not add the // quote to the string. This replicates standards command line parsing behaviour. - if (chr == '\"') { - inQuotedString = !inQuotedString; - } + inQuotedString = !inQuotedString; previousSpace = false; } else { - // Flip the state of being in a quoted string - if (chr == '\"') { - inQuotedString = !inQuotedString; - } previousSpace = false; currentArg += chr; }