adding secrects to chatcleaner

This commit is contained in:
doitux
2009-08-17 08:43:58 +00:00
parent c88b6b292d
commit f7885f9116
4 changed files with 9 additions and 5 deletions
@@ -254,6 +254,8 @@ void gameLobbyDialogImpl::refresh(int actionID) {
myGameListSelectionModel->clearSelection();
myGameListSortFilterProxyModel->clear();
treeWidget_NickList->clear();
QStringList headerList;
headerList << tr("Game") << tr("Players") << tr("State") << tr("Private");
myGameListModel->setHorizontalHeaderLabels(headerList);
@@ -33,6 +33,8 @@ using namespace std;
LobbyChat::LobbyChat(gameLobbyDialogImpl* l, ConfigFile *c) : myLobby(l), myConfig(c)
{
myChatTools = new ChatTools(myLobby->lineEdit_ChatInput, myConfig, 1, myLobby->textBrowser_ChatDisplay, myLobby->treeWidget_NickList);
myNick = QString::fromUtf8(myConfig->readConfigString("MyName").c_str());
}
LobbyChat::~LobbyChat()
@@ -42,10 +44,6 @@ LobbyChat::~LobbyChat()
void LobbyChat::sendMessage() {
// TODO nick needs to be set earlier.
if (myNick.isEmpty())
myNick = QString::fromUtf8(myConfig->readConfigString("MyName").c_str());
fillChatLinesHistory(myLobby->lineEdit_ChatInput->text());
QString tmpMsg(myLobby->lineEdit_ChatInput->text());
if (tmpMsg.size())