Skip to content

Commit

Permalink
Update mainwindow.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ic005k committed Oct 9, 2024
1 parent 8011d6c commit 5f3a01d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,16 @@ QVariantMap MainWindow::SaveUEFI() {
Method::get_TableData(ui->table_uefi_ReservedMemory);

// 10. Unload
subMap["Unload"] = Method::get_TableData(ui->table_uefi_Unload);
QString ver = lblVer->text();
ver = ver.replace("OpenCore", "");
QStringList list = ver.split("[");
if (list.count() > 0) {
ver = list.at(0);
}
ver = ver.trimmed();
qDebug() << "ver=" << ver;
if (ver > "1.0.1")
subMap["Unload"] = Method::get_TableData(ui->table_uefi_Unload);

return subMap;
}
Expand Down Expand Up @@ -2203,9 +2212,9 @@ QByteArray MainWindow::HexStringToByteArray(QString HexString) {
if (ok) {
ret.append(c);
} else {
qDebug() << "非法的16进制字符:" << s;
QMessageBox::warning(0, tr("错误:"),
QString("非法的16进制字符: \"%1\"").arg(s));
// qDebug() << "非法的16进制字符:" << s;
// QMessageBox::warning(0, tr("错误:"),
// QString("非法的16进制字符: \"%1\"").arg(s));
}
}
}
Expand Down

0 comments on commit 5f3a01d

Please sign in to comment.