Merge pull request #300 from AttorneyOnline/fix-287
Add rate limit to pressing 'enter' in IC to prevent accidental blankposting
This commit is contained in:
commit
81ed7ab55e
@ -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#
|
||||
|
Loading…
Reference in New Issue
Block a user