Please sign in to comment.
Fix infinite polling for usb devices after the "add to whitelist" dia…
…log 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.
- Loading branch information...
Showing with 3 additions and 4 deletions.