summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2021-08-31 09:15:03 +0200
committerJosJuice <josjuice@gmail.com>2021-08-31 09:15:03 +0200
commite376a985e435b15ef6518003a2810acdfbc4e0b6 (patch)
tree368eac8b86943e1a9ada2b0df912069a1ea48404 /Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp
parente69f7e7c777c9dc9e2182bb012cb4882fe89ca8f (diff)
Revert "DolphinQt: Minor consistency fixes for the Settings window"
This reverts commit 9d45bac17538bf0e64cfad025bd82109c971f9d6.
Diffstat (limited to 'Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp')
-rw-r--r--Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp19
1 files changed, 15 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp b/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp
index 3fab4f4834..5d6280d142 100644
--- a/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp
+++ b/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp
@@ -128,13 +128,25 @@ void USBDeviceAddToWhitelistDialog::AddUSBDeviceToWhitelist()
if (!IsValidUSBIDString(vid_string))
{
// i18n: Here, VID means Vendor ID (for a USB device).
- ModalMessageBox::critical(this, tr("USB Whitelist Error"), tr("The entered VID is invalid."));
+ ModalMessageBox vid_warning_box(this);
+ vid_warning_box.setIcon(QMessageBox::Warning);
+ vid_warning_box.setWindowTitle(tr("USB Whitelist Error"));
+ // i18n: Here, VID means Vendor ID (for a USB device).
+ vid_warning_box.setText(tr("The entered VID is invalid."));
+ vid_warning_box.setStandardButtons(QMessageBox::Ok);
+ vid_warning_box.exec();
return;
}
if (!IsValidUSBIDString(pid_string))
{
// i18n: Here, PID means Product ID (for a USB device).
- ModalMessageBox::critical(this, tr("USB Whitelist Error"), tr("The entered PID is invalid."));
+ ModalMessageBox pid_warning_box(this);
+ pid_warning_box.setIcon(QMessageBox::Warning);
+ pid_warning_box.setWindowTitle(tr("USB Whitelist Error"));
+ // i18n: Here, PID means Product ID (for a USB device).
+ pid_warning_box.setText(tr("The entered PID is invalid."));
+ pid_warning_box.setStandardButtons(QMessageBox::Ok);
+ pid_warning_box.exec();
return;
}
@@ -143,8 +155,7 @@ void USBDeviceAddToWhitelistDialog::AddUSBDeviceToWhitelist()
if (SConfig::GetInstance().IsUSBDeviceWhitelisted({vid, pid}))
{
- ModalMessageBox::critical(this, tr("USB Whitelist Error"),
- tr("This USB device is already whitelisted."));
+ ModalMessageBox::critical(this, tr("Error"), tr("This USB device is already whitelisted."));
return;
}
SConfig::GetInstance().m_usb_passthrough_devices.emplace(vid, pid);