Permalink
Browse files

Qt/Settings: Add Cancel button to USB passthrough device dialog

  • Loading branch information...
Z1ni committed Oct 8, 2018
1 parent feaa466 commit b27c688fdf1c0d3c827fd2518f5c05685a3786ac
Showing with 3 additions and 0 deletions.
  1. +3 −0 Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp
@@ -48,9 +48,12 @@ void USBDeviceAddToWhitelistDialog::InitControls()
m_whitelist_buttonbox = new QDialogButtonBox();
auto* add_button = new QPushButton(tr("Add"));
auto* cancel_button = new QPushButton(tr("Cancel"));
m_whitelist_buttonbox->addButton(add_button, QDialogButtonBox::AcceptRole);
m_whitelist_buttonbox->addButton(cancel_button, QDialogButtonBox::RejectRole);
connect(add_button, &QPushButton::clicked, this,
&USBDeviceAddToWhitelistDialog::AddUSBDeviceToWhitelist);
connect(cancel_button, &QPushButton::clicked, this, &USBDeviceAddToWhitelistDialog::reject);
add_button->setDefault(true);
main_layout = new QVBoxLayout();

0 comments on commit b27c688

Please sign in to comment.