diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2020-09-11 22:13:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-11 22:13:26 -0500 |
| commit | 81ed7ab55e48dbce67714edc3868789c08b346e2 (patch) | |
| tree | 6cf77adc1a62fe50bc0de06372b8d77dd0306cc0 /src | |
| parent | fe5128280c4e86dbc8e6b7af284bebb9c4f570f0 (diff) | |
| parent | 6c2010a1cfcfc4cbf884c68a3c01a67a39f7166d (diff) | |
Merge pull request #300 from AttorneyOnline/fix-287
Add rate limit to pressing 'enter' in IC to prevent accidental blankposting
Diffstat (limited to 'src')
| -rw-r--r-- | src/courtroom.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 04c625f..7d6aa40 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -1525,6 +1525,10 @@ void Courtroom::on_chat_return_pressed() if ((anim_state < 3 || text_state < 2) && objection_state == 0) return; + ui_ic_chat_message->blockSignals(true); + QTimer::singleShot(600, this, [=] { + ui_ic_chat_message->blockSignals(false); + }); // MS# // deskmod# // pre-emote# |
