fix device name
This commit is contained in:
parent
a9d019a1a6
commit
56aa8dcabf
|
@ -104,7 +104,11 @@ std::string config::device_to_config_dev_name(QString& dev_name)
|
||||||
size_t pos = name.find(" - ");
|
size_t pos = name.find(" - ");
|
||||||
|
|
||||||
if(pos != std::string::npos)
|
if(pos != std::string::npos)
|
||||||
name.erase(pos);
|
{
|
||||||
|
pos = name.find(" - ", pos + 3); // the first is ' - PID' 2022-10-11
|
||||||
|
if(pos != std::string::npos)
|
||||||
|
name.erase(pos);
|
||||||
|
}
|
||||||
|
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue