mirror of
https://github.com/wh201906/Proxmark3GUI.git
synced 2026-07-16 22:55:29 +08:00
Replace replace(xxx, "") with remove(xxx)
This commit is contained in:
@@ -625,7 +625,7 @@ void MainWindow::on_MF_dataWidget_itemChanged(QTableWidgetItem *item)
|
||||
}
|
||||
else if(item->column() == 2)
|
||||
{
|
||||
QString data = item->text().replace(" ", "").toUpper();
|
||||
QString data = item->text().remove(" ").toUpper();
|
||||
if(data == "" || mifare->data_isDataValid(data) == Mifare::DATA_NOSPACE)
|
||||
{
|
||||
mifare->data_setData(item->row(), data);
|
||||
@@ -645,7 +645,7 @@ void MainWindow::on_MF_keyWidget_itemChanged(QTableWidgetItem *item)
|
||||
{
|
||||
if(item->column() == 1)
|
||||
{
|
||||
QString key = item->text().replace(" ", "").toUpper();
|
||||
QString key = item->text().remove(" ").toUpper();
|
||||
if(key == "" || mifare->data_isKeyValid(key))
|
||||
{
|
||||
mifare->data_setKey(item->row(), Mifare::KEY_A, key);
|
||||
@@ -658,7 +658,7 @@ void MainWindow::on_MF_keyWidget_itemChanged(QTableWidgetItem *item)
|
||||
}
|
||||
else if(item->column() == 2)
|
||||
{
|
||||
QString key = item->text().replace(" ", "").toUpper();
|
||||
QString key = item->text().remove(" ").toUpper();
|
||||
if(key == "" || mifare->data_isKeyValid(key))
|
||||
{
|
||||
mifare->data_setKey(item->row(), Mifare::KEY_B, key);
|
||||
|
||||
Reference in New Issue
Block a user