mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 07:35:41 +00:00
Qt: Fix crash when right clicking with no game selected
This commit is contained in:
parent
bd1df7b25b
commit
27a0495c0e
|
@ -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("Reset Play Time")), &QAction::triggered,
|
||||
[this, entry]() { clearGameListEntryPlayTime(entry); });
|
||||
}
|
||||
|
||||
connect(menu.addAction(tr("Add Search Directory...")), &QAction::triggered,
|
||||
[this]() { getSettingsDialog()->getGameListSettingsWidget()->addSearchDirectory(this); });
|
||||
|
|
Loading…
Reference in a new issue