mirror of
https://github.com/wh201906/Proxmark3GUI.git
synced 2025-03-01 12:31:31 +08:00
parent
f285f76a20
commit
c277844cf4
@ -84,7 +84,11 @@ void LF::getLFConfig()
|
||||
start = result.indexOf(config["field start"].toString());
|
||||
end = result.indexOf(config["field end"].toString());
|
||||
result = result.mid(start, end - start);
|
||||
#if (QT_VERSION <= QT_VERSION_CHECK(5,14,0))
|
||||
resultList = result.split("\n", QString::SkipEmptyParts);
|
||||
#else
|
||||
resultList = result.split("\n", Qt::SkipEmptyParts);
|
||||
#endif
|
||||
qDebug() << "LF CONFIG GET\n" << resultList;
|
||||
for(auto it = resultList.begin(); it != resultList.end(); it++)
|
||||
{
|
||||
|
@ -156,7 +156,11 @@ void MainWindow::on_PM3_connectButton_clicked()
|
||||
#endif
|
||||
envSetProcess.waitForReadyRead(10000);
|
||||
QString envSetResult = QString(envSetProcess.readAll());
|
||||
#if (QT_VERSION <= QT_VERSION_CHECK(5,14,0))
|
||||
clientEnv = envSetResult.split("\n", QString::SkipEmptyParts);
|
||||
#else
|
||||
clientEnv = envSetResult.split("\n", Qt::SkipEmptyParts);
|
||||
#endif
|
||||
if(clientEnv.size() > 2) // the first element is "set" and the last element is the current path
|
||||
{
|
||||
clientEnv.removeFirst();
|
||||
|
Loading…
x
Reference in New Issue
Block a user