mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Connect numerous QPushButtons to use clicked signal instead of pressed. This unifies UI behaviour more.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user