fix bg type string '/r/n'
This commit is contained in:
parent
27a4eb5c8b
commit
4fa3d9dc1c
@ -122,11 +122,11 @@ QList<NameInfo_t> getNameByFile(const QString& filename) {
|
|||||||
QString name1 = csvList.at(0);
|
QString name1 = csvList.at(0);
|
||||||
QString type_str = csvList.last();//QString::fromLocal8Bit(csvList.last());
|
QString type_str = csvList.last();//QString::fromLocal8Bit(csvList.last());
|
||||||
qDebug() << "row :" << row << " " << name1;
|
qDebug() << "row :" << row << " " << name1;
|
||||||
#ifdef Q_OS_MAC
|
|
||||||
|
type_str = type_str.remove(QRegExp("\r"));
|
||||||
type_str = type_str.remove(QRegExp("\n"));
|
type_str = type_str.remove(QRegExp("\n"));
|
||||||
#else
|
|
||||||
type_str = type_str.remove(QRegExp("\r\n"));
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (name1.compare("name_1") == 0) {
|
if (name1.compare("name_1") == 0) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user