Merge pull request #6953 from spycrab/qt_map_unresponsive

Qt/MappingButton: Fix window becoming unresponsive after mapping
This commit is contained in:
spycrab 2018-05-24 01:21:53 +02:00 committed by GitHub
commit a60bba37cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,7 +106,6 @@ void MappingButton::Detect()
installEventFilter(BlockUserInputFilter::Instance());
grabKeyboard();
grabMouse();
// Make sure that we don't block event handling
std::thread thread([this] {
@ -169,7 +168,6 @@ void MappingButton::Detect()
m_parent->GetController()->GetDefaultDevice());
}
releaseMouse();
releaseKeyboard();
removeEventFilter(BlockUserInputFilter::Instance());