mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Replace newlines with spaces
This commit is contained in:
parent
6baf045c4c
commit
7ce1458348
1 changed files with 5 additions and 2 deletions
|
@ -57,8 +57,11 @@ ChatWidgetInput::ChatWidgetInput(ChatWidget *_chatWidget)
|
||||||
if (c == nullptr) {
|
if (c == nullptr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
c->sendMessage(textInput.toPlainText());
|
QString message = textInput.toPlainText();
|
||||||
prevMsg.append(textInput.toPlainText());
|
|
||||||
|
c->sendMessage(message.replace('\n', ' '));
|
||||||
|
prevMsg.append(message);
|
||||||
|
|
||||||
event->accept();
|
event->accept();
|
||||||
if (!(event->modifiers() == Qt::ControlModifier)) {
|
if (!(event->modifiers() == Qt::ControlModifier)) {
|
||||||
textInput.setText(QString());
|
textInput.setText(QString());
|
||||||
|
|
Loading…
Reference in a new issue