diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2020-09-07 14:53:17 -0500 |
|---|---|---|
| committer | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2020-09-07 14:53:17 -0500 |
| commit | 6c2010a1cfcfc4cbf884c68a3c01a67a39f7166d (patch) | |
| tree | 6cf77adc1a62fe50bc0de06372b8d77dd0306cc0 /src/courtroom.cpp | |
| parent | 311e260d658d799899140277d318773ae3a197a2 (diff) | |
Apply suggested change to remove need for additional function
Diffstat (limited to 'src/courtroom.cpp')
| -rw-r--r-- | src/courtroom.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index c1a306ea..7d6aa409 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -1526,7 +1526,9 @@ void Courtroom::on_chat_return_pressed() return; ui_ic_chat_message->blockSignals(true); - QTimer::singleShot(600, this, SLOT(ratelimit_ic())); + QTimer::singleShot(600, this, [=] { + ui_ic_chat_message->blockSignals(false); + }); // MS# // deskmod# // pre-emote# @@ -4711,10 +4713,6 @@ void Courtroom::announce_case(QString title, bool def, bool pro, bool jud, } } -void Courtroom::ratelimit_ic() { - ui_ic_chat_message->blockSignals(false); -} - Courtroom::~Courtroom() { delete music_player; |
