Merge pull request #6806 from spycrab/qt_iowindow_crash
Qt/IOWindow: Fix crash
This commit is contained in:
commit
3cca051850
|
@ -217,6 +217,9 @@ void IOWindow::UpdateOptionList()
|
||||||
|
|
||||||
const auto device = g_controller_interface.FindDevice(m_devq);
|
const auto device = g_controller_interface.FindDevice(m_devq);
|
||||||
|
|
||||||
|
if (device == nullptr)
|
||||||
|
return;
|
||||||
|
|
||||||
if (m_reference->IsInput())
|
if (m_reference->IsInput())
|
||||||
{
|
{
|
||||||
for (const auto* input : device->Inputs())
|
for (const auto* input : device->Inputs())
|
||||||
|
|
Loading…
Reference in New Issue