Skip to content

Commit

Permalink
Qt/MappingButton: Fix window becoming unresponsive after mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
spycrab committed May 23, 2018
1 parent dfb1dba commit c39f001
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp
Expand Up @@ -104,7 +104,6 @@ void MappingButton::Detect()

installEventFilter(BlockUserInputFilter::Instance());
grabKeyboard();
grabMouse();

// Make sure that we don't block event handling
std::thread thread([this] {
Expand All @@ -118,7 +117,6 @@ void MappingButton::Detect()
const auto expr = MappingCommon::DetectExpression(
m_reference, dev.get(), m_parent->GetController()->GetDefaultDevice());

releaseMouse();
releaseKeyboard();
removeEventFilter(BlockUserInputFilter::Instance());

Expand Down

0 comments on commit c39f001

Please sign in to comment.