mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 14:39:01 +01:00
Qt/NetPlay: Make double clicking game entries confirm dialogs
This commit is contained in:
parent
beeb6754d2
commit
1bc8c34f8b
@ -41,6 +41,8 @@ void GameListDialog::ConnectWidgets()
|
|||||||
m_button_box->setEnabled(row != -1);
|
m_button_box->setEnabled(row != -1);
|
||||||
m_game_id = m_game_list->currentItem()->text();
|
m_game_id = m_game_list->currentItem()->text();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
connect(m_game_list, &QListWidget::itemDoubleClicked, this, &GameListDialog::accept);
|
||||||
connect(m_button_box, &QDialogButtonBox::accepted, this, &GameListDialog::accept);
|
connect(m_button_box, &QDialogButtonBox::accepted, this, &GameListDialog::accept);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,6 +164,9 @@ void NetPlaySetupDialog::ConnectWidgets()
|
|||||||
[](int index) {
|
[](int index) {
|
||||||
Settings::GetQSettings().setValue(QStringLiteral("netplay/hostgame"), index);
|
Settings::GetQSettings().setValue(QStringLiteral("netplay/hostgame"), index);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
connect(m_host_games, &QListWidget::itemDoubleClicked, this, &NetPlaySetupDialog::accept);
|
||||||
|
|
||||||
connect(m_host_force_port_check, &QCheckBox::toggled,
|
connect(m_host_force_port_check, &QCheckBox::toggled,
|
||||||
[this](int value) { m_host_force_port_box->setEnabled(value); });
|
[this](int value) { m_host_force_port_box->setEnabled(value); });
|
||||||
#ifdef USE_UPNP
|
#ifdef USE_UPNP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user