From 810bfbc246187daa298415febb1fd07c52f62a36 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Thu, 26 Jul 2018 16:53:54 +0300 Subject: [PATCH] Swapped the tag and the square bracket in the message time --- src/chatwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chatwindow.cpp b/src/chatwindow.cpp index 1380326..b9dc5ef 100644 --- a/src/chatwindow.cpp +++ b/src/chatwindow.cpp @@ -32,7 +32,7 @@ void ChatWindow::sendMessage(QString msgText) jSend["msgText"] = msgText; network->sendDatagram(jSend, peerID); QDateTime date(QDateTime::currentDateTime()); - ui->chatEdit->append("[" + date.toString() + "] " + tr("You: ") + msgText); + ui->chatEdit->append("[" + date.toString() + "] " + tr("You: ") + msgText); } void ChatWindow::sendMsgButtonClicked() @@ -45,7 +45,7 @@ void ChatWindow::sendMsgButtonClicked() void ChatWindow::displayMsg(QString msgText) { QDateTime date(QDateTime::currentDateTime()); - ui->chatEdit->append("[" + date.toString() + "] " + "" + peerID + "" + ": " + msgText); + ui->chatEdit->append("[" + date.toString() + "] " + "" + peerID + "" + ": " + msgText); } void ChatWindow::leftFromChat()