From fd009745f9bc07a9c27ba899eff18a853840d14c Mon Sep 17 00:00:00 2001 From: wh201906 <62299611+wh201906@users.noreply.github.com> Date: Thu, 16 Apr 2020 12:58:18 +0800 Subject: [PATCH] Update README.md --- README.md | 2 +- mainwindow.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7492642..cc91375 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Proxmark3GUI -A GUI for Proxmark3 client +A GUI for [Proxmark3](https://github.com/Proxmark/proxmark3) client *** diff --git a/mainwindow.cpp b/mainwindow.cpp index ccc00e0..b2b38c8 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -163,7 +163,7 @@ void MainWindow::on_MF_RW_readAllButton_clicked() QApplication::processEvents(); result = ""; validkey = -1; - if(MF_isKeyValid(ui->MF_keyWidget->item(i, 1)->text())) + if(ui->MF_keyWidget->item(i,1)!=nullptr && MF_isKeyValid(ui->MF_keyWidget->item(i, 1)->text())) { result = execCMDWithOutput("hf mf rdbl " + QString::number(4 * i) @@ -175,7 +175,7 @@ void MainWindow::on_MF_RW_readAllButton_clicked() ui->MF_dataWidget->setItem(4 * i, 2,new QTableWidgetItem(result.mid(result.indexOf("isOk:01")+13, 47).toUpper())); } } - if(validkey == -1 && MF_isKeyValid(ui->MF_keyWidget->item(i, 2)->text())) + if(validkey == -1 && ui->MF_keyWidget->item(i,2)!=nullptr && MF_isKeyValid(ui->MF_keyWidget->item(i, 2)->text())) { result = execCMDWithOutput("hf mf rdbl " + QString::number(4 * i)