Commit 5c24a2ec authored by Patrick José Pereira's avatar Patrick José Pereira

QGCFlightGearLink: correct if-if else logic

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 7d2cbff1
......@@ -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;
}
......
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