mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 00:45:46 +08:00
Ref T773, use complete string as modelstring for "cg" dot command
Example: "B773 B773_RR SDM"
This commit is contained in:
committed by
Mat Sutcliffe
parent
ec92b6dc46
commit
53d08384da
@@ -568,7 +568,8 @@ namespace BlackCore
|
|||||||
// CG override
|
// CG override
|
||||||
if (part1 == QStringView(u"cg") && parser.hasPart(3))
|
if (part1 == QStringView(u"cg") && parser.hasPart(3))
|
||||||
{
|
{
|
||||||
const QString ms = parser.part(3).toUpper();
|
// ms can be a string like "B773 B773_RR SDM"
|
||||||
|
const QString ms = parser.partAndRemainingStringAfter(3).toUpper();
|
||||||
CLength cg;
|
CLength cg;
|
||||||
cg.parseFromString(parser.part(2), CPqString::SeparatorBestGuess);
|
cg.parseFromString(parser.part(2), CPqString::SeparatorBestGuess);
|
||||||
if (!ms.isEmpty())
|
if (!ms.isEmpty())
|
||||||
|
|||||||
Reference in New Issue
Block a user