Qt: Fix default device handling

This commit is contained in:
spycrab
2017-05-21 14:47:35 +02:00
parent 1c9d11c0e9
commit 6370f094ba
2 changed files with 6 additions and 2 deletions

View File

@ -54,7 +54,7 @@ GetExpressionForControl(const QString& control_name,
void MappingButton::OnButtonPressed()
{
if (m_block)
if (m_block || m_parent->GetDevice() == nullptr)
return;
// Make sure that we don't block event handling