Make double click on selected usb whitelist device add it

This commit is contained in:
Antonio Maiorano 2018-10-09 20:34:32 -04:00
parent 406159f7f0
commit 3a8493cc59

View File

@ -85,6 +85,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);