Qt: Fix default device handling
This commit is contained in:
1 parent
1c9d11c0e9
commit
6370f094ba
2 files changed
+6
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user