mirror of
https://github.com/wh201906/Proxmark3GUI.git
synced 2025-03-15 02:54:40 +08:00
Fix the user input for "Port"
Port can be something not listed in the combobox, like tcp:192.168.xxx.xxx:xxxxx(25 characters) bt:aa:bb:cc:dd:ee:ff(20 characters)
This commit is contained in:
parent
785fde6e2d
commit
99bb58adf9
@ -158,7 +158,15 @@ void MainWindow::on_PM3_connectButton_clicked()
|
||||
{
|
||||
qDebug() << "Main:" << QThread::currentThread();
|
||||
|
||||
QString port = ui->PM3_portBox->currentData().toString();
|
||||
const QComboBox* portBox = ui->PM3_portBox;
|
||||
QString port;
|
||||
if(portBox->currentText() == portBox->itemText(portBox->currentIndex()))
|
||||
// in the list
|
||||
port = portBox->currentData().toString();
|
||||
else
|
||||
// not in the list
|
||||
port = portBox->currentText();
|
||||
qDebug() << "port:" << port;
|
||||
QString startArgs = ui->Set_Client_startArgsEdit->text();
|
||||
QString clientPath = ui->PM3_pathBox->currentText();
|
||||
QFileInfo clientFile(clientPath);
|
||||
|
@ -94,6 +94,9 @@
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="minimumContentsLength">
|
||||
<number>15</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user