diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2019-07-24 18:06:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-24 18:06:29 -0700 |
| commit | d82e0e0761aa8cf08048aed64011f0edf5d967a8 (patch) | |
| tree | 0d19a24b6470e9e2fb57df22107835ca4421c7c6 /Source/Core/DolphinQt/DiscordJoinRequestDialog.cpp | |
| parent | 29ba53f6c32313e551b4797a84a4edf477a4d54e (diff) | |
| parent | 3529dfd69151bcf6c43145dcb5a677c3ae85653f (diff) | |
Merge pull request #8263 from CookiePLMonster/qt-button-fixes
Fixed behaviour of some buttons by connecting functors to correct signals
Diffstat (limited to 'Source/Core/DolphinQt/DiscordJoinRequestDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/DiscordJoinRequestDialog.cpp | 8 |
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) |
