mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-22 11:25:41 +01:00
Merge pull request #12554 from german77/directconnect
yuzu: Use displayed port on direct connect
This commit is contained in:
commit
148ad0cf0b
@ -94,7 +94,7 @@ void DirectConnectWindow::Connect() {
|
|||||||
// Store settings
|
// Store settings
|
||||||
UISettings::values.multiplayer_nickname = ui->nickname->text().toStdString();
|
UISettings::values.multiplayer_nickname = ui->nickname->text().toStdString();
|
||||||
UISettings::values.multiplayer_ip = ui->ip->text().toStdString();
|
UISettings::values.multiplayer_ip = ui->ip->text().toStdString();
|
||||||
if (ui->port->isModified() && !ui->port->text().isEmpty()) {
|
if (!ui->port->text().isEmpty()) {
|
||||||
UISettings::values.multiplayer_port = ui->port->text().toInt();
|
UISettings::values.multiplayer_port = ui->port->text().toInt();
|
||||||
} else {
|
} else {
|
||||||
UISettings::values.multiplayer_port = UISettings::values.multiplayer_port.GetDefault();
|
UISettings::values.multiplayer_port = UISettings::values.multiplayer_port.GetDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user