summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/DiscordJoinRequestDialog.cpp
diff options
context:
space:
mode:
authorSilent <zdanio95@gmail.com>2019-07-24 00:18:58 +0200
committerSilent <zdanio95@gmail.com>2019-07-24 00:18:58 +0200
commit3529dfd69151bcf6c43145dcb5a677c3ae85653f (patch)
tree0d19a24b6470e9e2fb57df22107835ca4421c7c6 /Source/Core/DolphinQt/DiscordJoinRequestDialog.cpp
parent29ba53f6c32313e551b4797a84a4edf477a4d54e (diff)
Connect numerous QPushButtons to use clicked signal instead of pressed. This unifies UI behaviour more.
Diffstat (limited to 'Source/Core/DolphinQt/DiscordJoinRequestDialog.cpp')
-rw-r--r--Source/Core/DolphinQt/DiscordJoinRequestDialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/DiscordJoinRequestDialog.cpp b/Source/Core/DolphinQt/DiscordJoinRequestDialog.cpp
index dd0a6eb64b..a49b341cba 100644
--- a/Source/Core/DolphinQt/DiscordJoinRequestDialog.cpp
+++ b/Source/Core/DolphinQt/DiscordJoinRequestDialog.cpp
@@ -76,10 +76,10 @@ void DiscordJoinRequestDialog::CreateLayout(const std::string& discord_tag, cons
void DiscordJoinRequestDialog::ConnectWidgets()
{
- connect(m_invite_button, &QPushButton::pressed, [this] { Reply(DISCORD_REPLY_YES); });
- connect(m_decline_button, &QPushButton::pressed, [this] { Reply(DISCORD_REPLY_NO); });
- connect(m_ignore_button, &QPushButton::pressed, [this] { Reply(DISCORD_REPLY_IGNORE); });
- connect(this, &QDialog::rejected, this, [this] { Reply(DISCORD_REPLY_IGNORE); });
+ connect(m_invite_button, &QPushButton::clicked, [this] { Reply(DISCORD_REPLY_YES); });
+ connect(m_decline_button, &QPushButton::clicked, [this] { Reply(DISCORD_REPLY_NO); });
+ connect(m_ignore_button, &QPushButton::clicked, [this] { Reply(DISCORD_REPLY_IGNORE); });
+ connect(this, &QDialog::rejected, [this] { Reply(DISCORD_REPLY_IGNORE); });
}
void DiscordJoinRequestDialog::Reply(int reply)