mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
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:
parent
bd58cca832
commit
e25a8eda97
@ -590,7 +590,11 @@ void FriendsDialog::sendMsg()
|
|||||||
std::cerr << "FriendsDialog::sendMsg(): " << msg << std::endl;
|
std::cerr << "FriendsDialog::sendMsg(): " << msg << std::endl;
|
||||||
#endif
|
#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();
|
ui.lineEdit->clear();
|
||||||
// workaround for Qt bug - http://bugreports.qt.nokia.com/browse/QTBUG-2533
|
// 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.
|
// QTextEdit::clear() does not reset the CharFormat if document contains hyperlinks that have been accessed.
|
||||||
|
Loading…
Reference in New Issue
Block a user