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