fix broadcast own message (Patch from Phenom)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7436 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-07-06 11:07:33 +00:00
parent bd58cca832
commit e25a8eda97

View File

@ -590,7 +590,11 @@ void FriendsDialog::sendMsg()
std::cerr << "FriendsDialog::sendMsg(): " << msg << std::endl;
#endif
rsMsgs->sendPublicChat(message);
if (rsMsgs->sendPublicChat(message)) {
QString name = ui.nicknameLabel->text();
QDateTime currentTime = QDateTime::currentDateTime();
addChatMsg(false, false, name, currentTime, currentTime, text);
}//if (rsMsgs->sendPublicChat(message))
ui.lineEdit->clear();
// workaround for Qt bug - http://bugreports.qt.nokia.com/browse/QTBUG-2533
// QTextEdit::clear() does not reset the CharFormat if document contains hyperlinks that have been accessed.