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:
Tilka 2018-10-14 01:02:50 +01:00 committed by GitHub
commit 2d0e217715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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);