Apply suggested change to remove need for additional function

This commit is contained in:
in1tiate 2020-09-07 14:53:17 -05:00
parent 311e260d65
commit 6c2010a1cf
2 changed files with 3 additions and 6 deletions

View File

@ -828,7 +828,6 @@ private slots:
void on_casing_clicked();
void ping_server();
void ratelimit_ic();
};
#endif // COURTROOM_H

View File

@ -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;