aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/courtroom.h1
-rw-r--r--src/courtroom.cpp8
2 files changed, 3 insertions, 6 deletions
diff --git a/include/courtroom.h b/include/courtroom.h
index 8f5e43ae..5b5ff6c1 100644
--- a/include/courtroom.h
+++ b/include/courtroom.h
@@ -828,7 +828,6 @@ private slots:
void on_casing_clicked();
void ping_server();
- void ratelimit_ic();
};
#endif // COURTROOM_H
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;