From 165ac1c29ecc374194054ed609194f434a3c1e50 Mon Sep 17 00:00:00 2001 From: Antonio Maiorano Date: Tue, 2 Oct 2018 00:26:43 -0400 Subject: [PATCH] Fix QMessageBox icons using the default rather than the Dolphin logo --- Source/Core/DolphinQt/Settings/GeneralPane.cpp | 2 +- .../Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinQt/Settings/GeneralPane.cpp b/Source/Core/DolphinQt/Settings/GeneralPane.cpp index 3e9fe4a66c..54caa6f30f 100644 --- a/Source/Core/DolphinQt/Settings/GeneralPane.cpp +++ b/Source/Core/DolphinQt/Settings/GeneralPane.cpp @@ -314,7 +314,7 @@ void GeneralPane::OnSaveConfig() void GeneralPane::GenerateNewIdentity() { DolphinAnalytics::Instance()->GenerateNewIdentity(); - QMessageBox message_box; + QMessageBox message_box(this); message_box.setIcon(QMessageBox::Information); message_box.setWindowTitle(tr("Identity Generation")); message_box.setText(tr("New identity generated.")); diff --git a/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp b/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp index bec822d7fd..08348498c3 100644 --- a/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp +++ b/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp @@ -124,7 +124,7 @@ void USBDeviceAddToWhitelistDialog::AddUSBDeviceToWhitelist() if (!IsValidUSBIDString(vid_string)) { // i18n: Here, VID means Vendor ID (for a USB device). - QMessageBox vid_warning_box; + QMessageBox 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). @@ -136,7 +136,7 @@ void USBDeviceAddToWhitelistDialog::AddUSBDeviceToWhitelist() if (!IsValidUSBIDString(pid_string)) { // i18n: Here, PID means Product ID (for a USB device). - QMessageBox pid_warning_box; + QMessageBox 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).