From b0e50a1f95ca811999421b624317e327512318b6 Mon Sep 17 00:00:00 2001 From: Z1ni Date: Tue, 9 Oct 2018 01:19:21 +0300 Subject: [PATCH] Qt/Settings: Add Cancel button to USB passthrough device dialog --- .../Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp b/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp index 08348498c34d..cab4cb602d62 100644 --- a/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp +++ b/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp @@ -48,9 +48,13 @@ void USBDeviceAddToWhitelistDialog::InitControls() m_whitelist_buttonbox = new QDialogButtonBox(); auto* add_button = new QPushButton(tr("Add")); + auto* close_button = new QPushButton(tr("Close")); m_whitelist_buttonbox->addButton(add_button, QDialogButtonBox::AcceptRole); + m_whitelist_buttonbox->addButton(close_button, QDialogButtonBox::RejectRole); connect(add_button, &QPushButton::clicked, this, &USBDeviceAddToWhitelistDialog::AddUSBDeviceToWhitelist); + connect(close_button, &QPushButton::clicked, this, + &USBDeviceAddToWhitelistDialog::reject); add_button->setDefault(true); main_layout = new QVBoxLayout();