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:
commit
9a1f259626
|
@ -249,11 +249,10 @@ void WiiPane::ValidateSelectionState()
|
||||||
|
|
||||||
void WiiPane::OnUSBWhitelistAddButton()
|
void WiiPane::OnUSBWhitelistAddButton()
|
||||||
{
|
{
|
||||||
USBDeviceAddToWhitelistDialog* usb_whitelist_dialog = new USBDeviceAddToWhitelistDialog(this);
|
USBDeviceAddToWhitelistDialog usb_whitelist_dialog(this);
|
||||||
connect(usb_whitelist_dialog, &USBDeviceAddToWhitelistDialog::accepted, this,
|
connect(&usb_whitelist_dialog, &USBDeviceAddToWhitelistDialog::accepted, this,
|
||||||
&WiiPane::PopulateUSBPassthroughListWidget);
|
&WiiPane::PopulateUSBPassthroughListWidget);
|
||||||
usb_whitelist_dialog->setModal(true);
|
usb_whitelist_dialog.exec();
|
||||||
usb_whitelist_dialog->show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void WiiPane::OnUSBWhitelistRemoveButton()
|
void WiiPane::OnUSBWhitelistRemoveButton()
|
||||||
|
|
Loading…
Reference in New Issue