Merge pull request #7485 from amaiorano/double-click-to-add-usb-whitelist-device
Make double click on selected usb whitelist device add it
This commit is contained in:
commit
2d0e217715
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue