Qt: Add a signal when the game list selection is changed

This commit is contained in:
Connor McLaughlin
2020-01-24 14:49:46 +10:00
parent 99af858562
commit 67710ca184
3 changed files with 20 additions and 3 deletions

View File

@ -260,9 +260,9 @@ void MainWindow::connectSignals()
connect(m_host_interface, &QtHostInterface::emulationPaused, this, &MainWindow::onEmulationPaused);
connect(m_host_interface, &QtHostInterface::toggleFullscreenRequested, this, &MainWindow::toggleFullscreen);
connect(m_game_list_widget, &GameListWidget::bootEntryRequested, [this](const GameList::GameListEntry& entry) {
connect(m_game_list_widget, &GameListWidget::bootEntryRequested, [this](const GameList::GameListEntry* entry) {
// if we're not running, boot the system, otherwise swap discs
QString path = QString::fromStdString(entry.path);
QString path = QString::fromStdString(entry->path);
if (!m_emulation_running)
{
m_host_interface->bootSystem(path, QString());