Qt: Fix fast forward crashing when no game loaded
This commit is contained in:
parent
883e7729f4
commit
17e5b6a455
@ -1167,9 +1167,13 @@ void Window::setupMenu(QMenuBar* menubar) {
|
||||
emulationMenu->addSeparator();
|
||||
|
||||
m_shortcutController->addFunctions(emulationMenu, [this]() {
|
||||
m_controller->setFastForward(true);
|
||||
if (m_controller) {
|
||||
m_controller->setFastForward(true);
|
||||
}
|
||||
}, [this]() {
|
||||
m_controller->setFastForward(false);
|
||||
if (m_controller) {
|
||||
m_controller->setFastForward(false);
|
||||
}
|
||||
}, QKeySequence(Qt::Key_Tab), tr("Fast forward (held)"), "holdFastForward");
|
||||
|
||||
QAction* turbo = new QAction(tr("&Fast forward"), emulationMenu);
|
||||
|
Loading…
x
Reference in New Issue
Block a user