Merge pull request #7486 from amaiorano/fix-infinite-polling-for-usb-devices

Fix infinite polling for usb devices after the "add to whitelist" dia…
This commit is contained in:
Tilka 2018-10-14 01:13:35 +01:00 committed by GitHub
commit 9a1f259626
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -249,11 +249,10 @@ void WiiPane::ValidateSelectionState()
void WiiPane::OnUSBWhitelistAddButton()
{
USBDeviceAddToWhitelistDialog* usb_whitelist_dialog = new USBDeviceAddToWhitelistDialog(this);
connect(usb_whitelist_dialog, &USBDeviceAddToWhitelistDialog::accepted, this,
USBDeviceAddToWhitelistDialog usb_whitelist_dialog(this);
connect(&usb_whitelist_dialog, &USBDeviceAddToWhitelistDialog::accepted, this,
&WiiPane::PopulateUSBPassthroughListWidget);
usb_whitelist_dialog->setModal(true);
usb_whitelist_dialog->show();
usb_whitelist_dialog.exec();
}
void WiiPane::OnUSBWhitelistRemoveButton()