From 8e546e79aa39e68ea5c5ef1d613ba2fe3a8cf6cf Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Thu, 8 Aug 2024 08:01:50 -0700 Subject: [PATCH] DolphinQT: Listen For `clicked` Signal Rather Than `pressed` The latter signal was likely used by mistake, e.g. https://github.com/dolphin-emu/dolphin/pull/8263. --- .../Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp | 4 ++-- Source/Core/DolphinQt/Debugger/NetworkWidget.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp b/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp index c39e1d7d58..df8456318c 100644 --- a/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp +++ b/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp @@ -135,8 +135,8 @@ void AchievementSettingsWidget::ConnectWidgets() { connect(m_common_integration_enabled_input, &QCheckBox::toggled, this, &AchievementSettingsWidget::ToggleRAIntegration); - connect(m_common_login_button, &QPushButton::pressed, this, &AchievementSettingsWidget::Login); - connect(m_common_logout_button, &QPushButton::pressed, this, &AchievementSettingsWidget::Logout); + connect(m_common_login_button, &QPushButton::clicked, this, &AchievementSettingsWidget::Login); + connect(m_common_logout_button, &QPushButton::clicked, this, &AchievementSettingsWidget::Logout); connect(m_common_hardcore_enabled_input, &QCheckBox::toggled, this, &AchievementSettingsWidget::ToggleHardcore); connect(m_common_unofficial_enabled_input, &QCheckBox::toggled, this, diff --git a/Source/Core/DolphinQt/Debugger/NetworkWidget.cpp b/Source/Core/DolphinQt/Debugger/NetworkWidget.cpp index 22a0cf74e3..e5b91e856a 100644 --- a/Source/Core/DolphinQt/Debugger/NetworkWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/NetworkWidget.cpp @@ -227,7 +227,7 @@ void NetworkWidget::ConnectWidgets() connect(m_dump_bba_checkbox, &QCheckBox::stateChanged, [](int state) { Config::SetBaseOrCurrent(Config::MAIN_NETWORK_DUMP_BBA, state == Qt::Checked); }); - connect(m_open_dump_folder, &QPushButton::pressed, [] { + connect(m_open_dump_folder, &QPushButton::clicked, [] { const std::string location = File::GetUserPath(D_DUMPSSL_IDX); const QUrl url = QUrl::fromLocalFile(QString::fromStdString(location)); QDesktopServices::openUrl(url);