mirror of https://github.com/PCSX2/pcsx2.git
Qt: Fix crash booting with mouse mapping
This commit is contained in:
parent
fbb50e2895
commit
a4909d3575
|
@ -1933,7 +1933,7 @@ void MainWindow::relativeMouseModeRequested(bool enabled)
|
|||
return;
|
||||
|
||||
m_relative_mouse_mode = enabled;
|
||||
if (s_vm_valid && !s_vm_paused)
|
||||
if (m_display_widget && !s_vm_paused)
|
||||
updateDisplayWidgetCursor();
|
||||
}
|
||||
|
||||
|
@ -2002,6 +2002,7 @@ void MainWindow::destroyDisplayWidget(bool show_game_list)
|
|||
|
||||
void MainWindow::updateDisplayWidgetCursor()
|
||||
{
|
||||
pxAssertRel(m_display_widget, "Should have a display widget");
|
||||
m_display_widget->updateRelativeMode(s_vm_valid && !s_vm_paused && m_relative_mouse_mode);
|
||||
m_display_widget->updateCursor(s_vm_valid && !s_vm_paused && shouldHideMouseCursor());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue