Skip to content

Commit 8954132

Browse files
committed
fix: wireless connect use default port
1 parent d0c3e2e commit 8954132

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

QtScrcpy/ui/dialog.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,10 @@ void Dialog::on_wirelessConnectBtn_clicked()
379379
if (!ui->devicePortEdt->currentText().isEmpty()) {
380380
addr += ":";
381381
addr += ui->devicePortEdt->currentText().trimmed();
382+
}
383+
if (!ui->devicePortEdt->lineEdit()->placeholderText().isEmpty()) {
384+
addr += ":";
385+
addr += ui->devicePortEdt->lineEdit()->placeholderText().trimmed();
382386
} else {
383387
outLog("error: device port is null", false);
384388
return;

0 commit comments

Comments
 (0)