summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/SWmain.cpp
diff options
context:
space:
mode:
authorAntonio Maiorano <amaiorano@gmail.com>2018-10-09 22:02:59 -0400
committerAntonio Maiorano <amaiorano@gmail.com>2018-10-12 21:34:05 -0400
commit3dec84a91b00b50c3d07c0eb68238173bd11cdd1 (patch)
treed8a018c4a888834e45920fe41ca09387780d9779 /Source/Core/VideoBackends/Software/SWmain.cpp
parentf8c679bab962e79a3aa2cf5990f542dbcf4caf74 (diff)
Fix infinite polling for usb devices after the "add to whitelist" dialog has been opened once
Problem is that USBDeviceAddToWhitelistDialog starts a timer once created to poll for devices every second. In Qt, closing a heap-allocated dialog doesn't delete it, so it keeps on polling. This fix is to allocate dialog on the stack, then use "exec" to run it modally without returning. Once closed, the stack instance will get destroyed, thus killing the timer.
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWmain.cpp')
0 files changed, 0 insertions, 0 deletions