mirror of
https://github.com/ChronosX88/Influence-cjdns.git
synced 2024-11-08 17:01:00 +00:00
Fixed a bug that allowed sending an empty string in the chat window.
This commit is contained in:
parent
d5c9371a65
commit
61533a5989
@ -38,6 +38,8 @@ void ChatWindow::sendMessage(QString msgText)
|
||||
void ChatWindow::sendMsgButtonClicked()
|
||||
{
|
||||
QString msg = ui->msgEdit->text();
|
||||
if(msg == "")
|
||||
return;
|
||||
sendMessage(msg);
|
||||
ui->msgEdit->setText("");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user