Permalink
Browse files

Merge pull request #7173 from spycrab/qt_np_dclick

Qt/NetPlay: Make double clicking game entries confirm dialogs
  • Loading branch information...
spycrab committed Jun 28, 2018
2 parents c310846 + 1bc8c34 commit 317de3cf5bbe0172eea05f7089e9b1d427596eea
@@ -41,6 +41,8 @@ void GameListDialog::ConnectWidgets()
m_button_box->setEnabled(row != -1);
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);
}
@@ -164,6 +164,9 @@ void NetPlaySetupDialog::ConnectWidgets()
[](int 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,
[this](int value) { m_host_force_port_box->setEnabled(value); });
#ifdef USE_UPNP

0 comments on commit 317de3c

Please sign in to comment.