Skip to content

Commit

Permalink
Qt: Fix crash when right clicking with no game selected
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Feb 5, 2023
1 parent bd1df7b commit 27a0495
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/duckstation-qt/mainwindow.cpp
Expand Up @@ -1419,13 +1419,13 @@ void MainWindow::onGameListEntryContextMenuRequested(const QPoint& point)
}

menu.addSeparator();
}

connect(menu.addAction(tr("Exclude From List")), &QAction::triggered,
[this, entry]() { getSettingsDialog()->getGameListSettingsWidget()->addExcludedPath(entry->path); });
connect(menu.addAction(tr("Exclude From List")), &QAction::triggered,
[this, entry]() { getSettingsDialog()->getGameListSettingsWidget()->addExcludedPath(entry->path); });

connect(menu.addAction(tr("Reset Play Time")), &QAction::triggered,
[this, entry]() { clearGameListEntryPlayTime(entry); });
connect(menu.addAction(tr("Reset Play Time")), &QAction::triggered,
[this, entry]() { clearGameListEntryPlayTime(entry); });
}

connect(menu.addAction(tr("Add Search Directory...")), &QAction::triggered,
[this]() { getSettingsDialog()->getGameListSettingsWidget()->addSearchDirectory(this); });
Expand Down

0 comments on commit 27a0495

Please sign in to comment.