diff options
| author | Tilka <tilkax@gmail.com> | 2018-10-14 01:02:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-14 01:02:50 +0100 |
| commit | 2d0e217715eb46a8f9ca9d8815b94fda6f600d6c (patch) | |
| tree | d9d592cd3de70d0cf4ea786833fa68a353dbd406 /Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp | |
| parent | 4b14fa40a6d06a6673de5e31919965974a38c434 (diff) | |
| parent | 3a8493cc598cbd696f51fdfda1e18e40db08092d (diff) | |
Merge pull request #7485 from amaiorano/double-click-to-add-usb-whitelist-device
Make double click on selected usb whitelist device add it
Diffstat (limited to 'Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp b/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp index 5689849a89..5f055fec69 100644 --- a/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp +++ b/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp @@ -88,6 +88,8 @@ void USBDeviceAddToWhitelistDialog::InitControls() m_refresh_devices_timer = new QTimer(this); connect(usb_inserted_devices_list, &QListWidget::currentItemChanged, this, &USBDeviceAddToWhitelistDialog::OnDeviceSelection); + connect(usb_inserted_devices_list, &QListWidget::itemDoubleClicked, add_button, + &QPushButton::clicked); connect(m_refresh_devices_timer, &QTimer::timeout, this, &USBDeviceAddToWhitelistDialog::RefreshDeviceList); m_refresh_devices_timer->start(1000); |
